use Debbugs::Text qw(:templates);
print fill_in_template(template => 'cgi/foo');
DESCRIPTIONThis module is a replacement for parts of common.pl; subroutines in common.pl will be gradually phased out and replaced with equivalent (or better) functionality here.
print fill_in_template(template => 'template_name', variables => \%variables, language => '..' );
Reads a template from disk (if it hasn't already been read in) and fills the template in.