http://www.perlmonks.org?node_id=827909


in reply to Learning Template Toolkit Module

Hello,

Here is a one-liner that gives you the gist of how it works:

$ perl -MTemplate -le 'Template->new->process(\"foo is: [% foo %]\nbaz +z is: [% bazz %]", {foo => "bar", bazz => "quxx"})' foo is: bar bazz is: quxx

The documentation has plenty of examples, so methinks you're just not looking at what is sitting in front of you. There is also a book you can get if that makes it easier.

regards,