in reply to HTML::Template create table
Alternatively I'd like to suggest HTML::Template::Compiled. In your script you just need to say:
Because it's possible to call methods on objects in HTC you just need the following in your template:my $htc = HTML::Template::Compiled->new(filename => "template_whthr.tm +pl"); $htc->param( table => $table ); print $htc->output;
If you prefer your own formatting, it's should be possible to subclass Data::Table to use an own to_html-method.<%= table.html %>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: HTML::Template create table
by GertMT (Hermit) on Nov 18, 2007 at 21:31 UTC |
In Section
Seekers of Perl Wisdom