use UrsusTemplate::tmpl; $tmpl_sub{$tmpl_path} = sub { my $out = ''; some Perl $out .= "some HTML"; return $out; }