David Romero schrieb am 10.03.2012 um 16:45 (-0700): > > I'm looking for a plugin or filter in tt2 that minifi (remove spaces, > comments, new line characters, etc) the html templates before compile > it.
Maybe this: http://template-toolkit.org/docs/manual/Filters.html#section_collapse But it doesn't remove comments. And what about <pre>? Anyway, if you're producing the templates yourself you can control how much comments and whitespace they contain. So if you want to get rid of it down the road why include it in the first place? Also see: https://metacpan.org/module/Template::Plugin::Filter::Minify::CSS https://metacpan.org/module/Template::Plugin::Filter::Minify::JavaScript Michael > This is really useful in high traffic web sites to > > 1 Minifi the html templates > 2 Compile it > 3 Save it in cache > > So that the next request only reads the cached version (already > minified and compiled). _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates