Skip to content

Custom Twig Extensions

Compare
Choose a tag to compare
@EvanLovely EvanLovely released this 05 Feb 22:43
· 2 commits to develop since this release
1934ca0

A Twig Extension is a collection of Twig functions, filters, tags, globals, and tests all as a single bundle. This approach is more advanced than adding a single function or filter using the traditional PL method, but allows greater flexibility as the whole Twig Extension can be installed in multiple environments. This can allow people to create and share common Twig Extensions much more easily, and opens up a lot of interesting possibilities. Happy Pattern Labbing!

New Features

See docs in the readme.