On Sun, 2 Sep 2001, Alexander Rios [ ne Digital - Verio Col. ] wrote:
> Can I change the name of tags from a template to use "#-name-#"
> against "<TMPL_VAR NAME=name>". The name of your tags is much better,
> but in the actual development, there are many templates that are in
> this way (#-***-#)
Yes. Just use a filter to change the format of the tags. Something like
this should work:
my $t = HTML::Template->new(filename => 'foo.tmpl',
filter => sub { $$_[0] =~ s/#-([^-]+)-#/<tmpl_var name="$1">/g }
);
-sam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]