Appearance
Introduction
Because logic belongs in PHP, not Twig.
What
A collection of Twig enhancements to help you develop better, cleaner Craft CMS templates more quickly.
Why?
Because simple templates are easier to understand, and code that is easier to understand is easier to maintain.
Craft CMS is a great tool for building websites, but it's not perfect. One of the biggest issues is that its very power and flexibility means it's very easy to end up with a lot of logic in your templates.
What you get...
- Utility functions
- String helpers
- SVG helpers
- Query/Collection helpers
- Eager loading helpers
- Debugging helpers
- Operators
- Media helpers
- The Stash
- The ability to define custom/one-off helpers
How?
Install the plugin and then explore the docs.