in reply to CGI::Ajax + Template::Toolkit Question
It may be that CGI::Ajax expects build_html to return the html (or updated html) for the page. However, by default, $tt->process($template, $vars) will print the processed output to STDOUT. Try something like the following:
which will stuff the processed template into $output.sub main_page { my $output = ''; $tt->process($template, $vars, \$output) || die $tt->error(), "\n"; return $output; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: CGI::Ajax + Template::Toolkit Question
by stonecolddevin (Parson) on Mar 07, 2007 at 07:21 UTC | |
by randyk (Parson) on Mar 07, 2007 at 16:17 UTC | |
by stonecolddevin (Parson) on Mar 09, 2007 at 01:01 UTC | |
by randyk (Parson) on Mar 09, 2007 at 07:12 UTC |
In Section
Seekers of Perl Wisdom