On Thu, Jan 21, 2010 at 4:26 AM, Tobias Kremer <[email protected]> wrote: > I'm aware of Template::Plugin::Cache, but I don't like the fact that > fragments I'd like to cache have to be included. I'd rather have > fragments take care of caching themselves, like Mason's cache_self() > method.
I don't think it's worth doing a bunch of extra work just to get a different syntax, but if you did want to do this you'd need to change things at a lower level than Template::Plugin::Cache did. You'd need to change the Perl code generated by the tag. It would require people to specify some custom subclasses when they start up TT. > On a side note, Template::Plugin::Cache seems to have problems with > Memcached and UTF-8 because the UTF-8 flag is not set on content > retrieved from the cache. This should be easy to fix with something > like: Encode::_utf8_on( $result ); Shouldn't the cache class take care of that? - Perrin _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
