amitsq has asked for the wisdom of the Perl Monks concerning the following question:
not sure how much my code can help, but here a simplified version of the script using the template:
use CGI qw(:standard); use CGI::Carp 'fatalsToBrowser'; use URI::Escape; use HTML::Template; use strict; use warnings; my $q = new CGI; $| = 1; my $template = HTML::Template->new(filename => "D://...//test.html"); print $q->header(); my $onevariable = $q -> param ("web"); print $template->output(); #displays beautiful css styled headline in +grid format use ownModule; print '<p id = "any" '; ownModuleMethod(); #by responseBufferLimit="0" updates are getting wr +itten on the website, which i'd like to keep that way, so the user kn +ows, which data get processed print '</p> '; #now removing all the updates print <<_EOT_; <script language=JavaScript type=text/javascript><!-- document.getElementById('any').style.display='none'; //--></script> _EOT_ my $amount = ownModuleOtherMethod(); $template->param( AMOUNT => $amount); #now i want the results to displ +ay $template->output; #can not do that, else it would print the same cont +ent again
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Template Alternative to output()
by marto (Cardinal) on Oct 09, 2017 at 15:41 UTC | |
|
Re: HTML::Template Alternative to output()
by hippo (Archbishop) on Oct 11, 2017 at 08:21 UTC | |
|
Re: HTML::Template Alternative to output()
by Anonymous Monk on Oct 09, 2017 at 18:44 UTC | |
|
Re: HTML::Template Alternative to output() (more subs , cgi101)
by Anonymous Monk on Oct 11, 2017 at 01:36 UTC |