in reply to Template strings
Note that TT it is very powerful and supports all kinds (IF, FOREACH, BLOCK, etc) of logic. http://www.template-toolkit.orguse Template; my $template = Template->new(); my $my_template_string = 'bar [% var1 %] foo foo [% var2 %] bar bar BA +AAR!'; my $vars = {var1=>"Guybrush", var2=>"Purcell"}; my $string; $template->process(\$my_template_string, $vars, \$string);
|
|---|