HTML::Template::Compiled::Classic
Provide the classic functionality like HTML::Template
Provide the classic functionality like HTML::Template
use HTML::Template::Compiled::Classic compatible => 1;
my $htcc = HTML::Template::Compiled::Classic->new(
# usual parameters for HTML::Template::Compiled
);
This class provides features which can not be used together with features from HTML::Template::Compiled. These are:
<TMPL_VAR NAME="some.var.with.dots">
you cannot use the dot-feature
<TMPL_VAR NAME="some.hash.keys">
at the same time.
my $ht = HTML::Template->new(
scalarref => \"<TMPL_VAR foo>",
);
$ht->param(foo => sub { return "bar" });
print $ht->output; # prints 'bar'
This doesn't work in HTML::Template::Compiled (in the past it did, but as of HTC version 0.70 it won't any more, sorry).