in reply to Generating HTML- CGI.pm - CGI::Simple

I use CGI::Application with CGI::Simple and HTML::Template and I find it works very well.

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
    That's what I'm doing :) Just that in your example get_input_field would load the YAML then use CGI.pm to make the input field.

    I think I'll just roll my own unless I come across something lightweight on CPAN.


    Lyle