fvsch / kirby-twig

Twig templating support for Kirby CMS 2. For Kirby 3, use https://github.com/amteich/kirby-twig
MIT License
70 stars 8 forks source link

Somehow allow adding safe functions #26

Closed kraftner closed 7 years ago

kraftner commented 7 years ago

Currently there is no way to add a helper function that is_safe. Maybe the internally used * prefix can be used or you can consider exposing the Twig Environment. Haven't thought this through yet though.

fvsch commented 7 years ago

This should work in 3.0.1: https://github.com/fvsch/kirby-twig/blob/master/doc/functions.md#marking-a-functions-output-as-safe

kraftner commented 7 years ago

Same here. Thanks a lot!