I better take this question all the way to the end. After reading the comments I've decided to try the Template::Alloy module. I am using CGI::Applications load_tmpl function to load my templates with HTML::Template. Here is an example of a basic function with the call to load_tmpl:
sub showMemberStart { # application object my $self = shift; # get cgi query object my $q = $self->query(); my %post = $q->Vars; # get session object my $session = $self->session; # database handle my $dbh = $self->param('dbh'); # load template files my $tmpl = $self->param('member_start' => $self->load_tmpl('member_sta +rt.phtml', die_on_bad_params => 0)); # output return $tmpl->output; }
How would I go about implementing Template::Alloy into this code? I rather not change the following rows:
# load template files my $tmpl = $self->param('member_start' => $self->load_tmpl('member_sta +rt.phtml', die_on_bad_params => 0));
Should I override the load_tmpl function? Anybody have an idea how this would be done?
In reply to Re: UTF-8 webpage output from MySQL
by Anonymous Monk
in thread UTF-8 webpage output from MySQL
by boboson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |