I have never implemented a templating system in Perl.
Yes, I know I've just exposed myself as a novice Perl programmer.
What I wanted to know is, it's been a while since I read an article on the subject or heard anyone even mention them, so I wanted to know: did any movement ever occur toward a preferred templating system? What's everybody using? If I were going to start an entirely new project tomorrow for a web application, what templating system would you recommend and why?
Clarification: What I am asking is: I have never learned a templating system. Which one should I learn?
Template Toolkit (Score:2)
My Picks (Score:2)
Like pudge, I tend to use Template Toolkit when I get to choose.
I use HTML::Mason a lot at $work. It's great for when the templates are going to be maintained by Perl programmers. If HTML authors or graphic designers are going to be editing your templates then I wouldn't recommend Mason.
The other one that's really worth looking into is Petal [cpan.org]. You can view the templates directly in your browser and they play nicely with GUI HTML editors.
Re:My Picks (Score:2)
Thank you for the tip about Mason, since I was leaning in that direction but am thinking about a project that would need to be usable by non-technical users.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:My Picks (Score:1)
I picked up TT2 very quickly and I am sure I have only scratched the surface of what it can do.
I highly recommend it.
Re:My Picks (Score:2)
Re: (Score:1)
Template Toolkit [tt2.org]. Nothing comes close.
That, or Text::Template [cpan.org].