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?
Does the MACRO directive which is described in Template::Manual do what you want?