in reply to Generating HTML- CGI.pm - CGI::Simple
I may be missing something but couldn't you combine the two?
my $t = HTML::Template->new(filename => q{tmpl.html}); $t->param( input_field => get_input_field(), ); print $t->output; sub get_input_field{ # do something with YAML }
<html> ... <TMPL_VAR input_field> ... </html>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Generating HTML- CGI.pm - CGI::Simple
by cosmicperl (Chaplain) on Mar 11, 2009 at 23:58 UTC |