>
> <!-- <tmpl_var name=somename> -->
>
>This works well if you are using an (X)HTML editor that 
>specifically recognized HTML and nothing else. This will just 
>tell it to skip over you TMPL_VAR tags. Would also be better if 
>you put your templates through some kind of validation before 
>using them.

Of course, it only works well if you don't want anyone to be able to
see whatever is put into 'somename'.

#!/usr/bin/perl
use HTML::Template;

my $t = HTML::Template->new (filehandle => *DATA);
$t->param (foo => 'bar');
print $t->output;

__DATA__
<!-- <TMPL_VAR foo> -->

#
Outputs:
<!-- bar -->
which is still in a html comment.

It would usually be:
<!-- tmpl_var name=somename -->


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to