[Templates] TT equivilent to Mason autohandler

Perrin Harkins perrin at elem.com
Sat Apr 26 17:15:24 BST 2008


On Sat, Apr 26, 2008 at 4:38 AM, Aaron Trevena <aaron.trevena at gmail.com> wrote:
>  Is there a TT equivalent to HTML::Masons autohandler, or a recipe that
>  avoids needing it?

WRAPPER is equivalent to what most people use autohandlers for.
http://tt2.org/docs/manual/Directives.html#section_WRAPPER

>  Also.. has anybody done much Rails-style caching of rendered templates ?

Template::Plugin::Cache
Be warned though, in most cases it's much better to cache at the data
level or the page level.

- Perrin



More information about the templates mailing list