Following the precendent set by the plugin for HTML::Template::Plugin::Dot,
I've released another plugin for another HTML::Template alternative,
HTML::Template::Compiled.
My plugin should be on CPAN by now, but here's an alternate link if it's
not:
http://mark.stosberg.com/perl/CGI-Application-Plugin-HTCompiled-1.01.tar.gz
The benchmark script included with HTML::Template::Compiled showed it to be
about 5 times faster than plain HTML::Template. (And about 10 times
faster than TT... )
Further, it adds several interesting new features to HTML::Template.
- die_on_bad_params has been removed (yay!)
- There's a dot notation like HTML::Template::Plugin::Dot provided
- <tmpl_comment> lets you leave comments in the templates that don't
rendered.
- <tmpl_switch> cleans up if/else chains in the templates.
- A shorter ASP style notation is available:
<%IF blah%> <%= VARIABLE%> <%/IF%>
There's some other cool things in there as well.
Be warned however that the module is still young and lacks some polish.
I have already noticed and sent patches for some minor bugs:
- The "new_..." shortcuts were missing, like "new_file()", etc.
- There were no checks in new() to make sure actually passed in a valid
template source.
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.