in reply to Callbacks and templates.
my $tmpl = new HTML::Template::Expr filename => 'template.html', functions => { site_name => \&site_name, }; [download]
<TMPL_VAR EXPR="site_name()"> [download]