I'd like to be able to serve TT2 templates from a database. The FAQ suggests that I need to subclass Template::Provider. Has anybody got a simple example of doing this? I've poked about in the source for Slash but that confused me.
On the subject of TT2, does anybody know when the book will be released?
See slashcode (Score:2)
OpenInteract copied slash... (Score:3, Informative)
One note: OI has a custom Template::Context object which interprets templates with a package::name format for its own uses, so calling something like:
[% INCLUDE mypackage::mytemplate %]
will do the right thing ('package' in this case being an OpenInteract package, not a Perl package).
Reply to This
Ask Me (Score:2)