views:

409

answers:

1

I've been looking through a couple of Catalyst tutorials and they all tend to use Template Toolkit instead of HTML::Template.

I've spent a lot of time with HTML::Template and I like it, and while I can see the power of TT, I don't know it, and I feel like I'd be learning two things at once; plus, because it does its processing in-template, I'm not sure where my HTML::Template $template->param(foo => \$bar); code would even go!

Anyone know a good tutorial/code sample using HTML::Template?

+14  A: 

Granted, the documentation on Catalyst::View::HTML::Template is a little sparse and it's not a tutorial per se, but it does cover configuring the basic HTML::Template settings (die_on_bad_params, etc.) and states that "Template params are set up from the contents of $c->stash", which looks to me like it should be enough to get you started.

Dave Sherohman