Are there any templating systems out there?

jonasbn on 2004-03-31T21:15:51

I have given Module::Template::Setup some thought and I have concluded that CGI::FastTemplate (my favorite templating module) is not quite the right thing for Module::Template::Setup.

The problem is that is works with $placeholder

Which means that is works great for HTML, XML and other things but not Perl code templates. The problem is conflicts between placeholders and Perl scalars.

Does anybody else have a suggestion for a good, simple, filebased template system or should I write my own? I actually never wrote a complete templating system, maybe I should, it would probably do me good and maybe I could learn something...


Template Toolkit

cwest on 2004-03-31T22:22:05

It's screaming in your face, "pick me, I'm good!"

Use Template Toolkit

grantm on 2004-03-31T23:03:30

What he said (↑).

Also ... should you write your own templating system? - Sure why not, if you have the time I'm sure it would be educational. Should you release it to CPAN? - Almost certainly not.

TT is the bomb, but...

lachoy on 2004-04-01T01:21:15

Template Toolkit is fantastic, without a doubt my favorite system in any language I've seen. But it might be heavyweight (esp. as a dependency) for your needs. MJD's Text::Template probably fills the bill for a lightweight, simple system here.