amteich / kirby-twig

Twig templating support for Kirby CMS
MIT License
48 stars 12 forks source link

How to get a site method defined in a custom plugin ? #24

Closed denisbertrandbe closed 3 years ago

denisbertrandbe commented 3 years ago

Hello.

I would like to know how to expose site/file/page (etc.) methods defined at a plugin level in twig ? But maybe I miss something in the documentation or... I' am doing things wrong.

Thank you !

denisbertrandbe commented 3 years ago

I have find the solution as explained here : https://github.com/amteich/kirby-twig/blob/master/doc/functions.md#using-a-function-name-string