(Top) < Using Templates | Going back to start() > |
In your application module:
sub submit_order { # ... # Load the template my $template = $webapp->load_tmpl('cost.tmpl'); # Fill the template's parameters $template->param(COST => '11.95'); # Return the filled-in template return $template->output; } |
You get all the HTML output, but filled in. This:
<p>Your bill will be $<b><TMPL_VAR NAME="COST"></b>.</p> |
Becomes:
<p>Your bill will be $<b>11.95</b>.</p> |
CGI::Application (v.2.0) |
25 |