Search code examples
perltemplate-toolkit

Can I easily add new directives to Template Toolkit for Perl?


I'd like to add my own directives to Template Toolkit instead if adding functions and/or virtual methods via the plugin system. Is this easily doable without delving too deep into Template::Grammar? And are there any examples I could study on CPAN?


Solution

  • Does the MACRO directive which is described in Template::Manual do what you want?