Very useful document comparing templating systems: http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html
Especially the funny debate between mini-lang and in-line, 8^) Perrin Harkins wrote:
Rodney Hampton wrote:Let me preface it by stating that I'm building a very simple templating application.
[...]Not satisfied, I wanted to make it possible to do something like:Do you realize that almost every templating system on CPAN already does this? If you are doing this because you think you've hit on a new feature, stop now and download one of those. If you're doing it because hacking perl is fun and you're in no rush, then go ahead and have a good time.
<% code_ref Util::Test_Util::test_expand %>
and have it swap in the text output from the sub into the template. That way, unlike other templating applications, I could get away from writing my own mini language and use the full power of perl in a sub called by a simple tag in the template.
- Perrin
-- _.,-*~`^'~*-,._ Danny Rathjens _.,-*~`^'~*-,._ FireCast: Rock solid kiosk software: http://wirespring.com