You can also define callbacks using HTML::Template::Expr. Look:
my $tmpl = new HTML::Template::Expr filename => 'template.html', functions => { site_name => \&site_name, };
And in template you can write:
<TMPL_VAR EXPR="site_name()">

In reply to Re: Callbacks and templates. by kappa
in thread Callbacks and templates. by LukeyBoy

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":