in reply to HTML templates => no HTML in Perl code

Hi emilford,

I'm using HTML::Template and I'm absolutely happy with it. It can do what you what you intend to do with your placeholders, and more. You can have <TMPL_IF>, <TMPL_INCLUDE> and <TMPL_ELSE> to control the stuff to insert in a particular template.

I used to freely mix perl code with html and the resultant code looks awful. Having said that, I must admit that I still have some html in my code because I find it more convenient to do so in some cases. Probably a bad practice but way better than my old style...

  • Comment on Re: HTML templates => no HTML in Perl code