> Hmm, there are systems which keep template files as HTML,
> like Zope Page Templates (there is sth based on this idea for
> perl too). The main idea is to specify templating
> instructions using HTML tags attributes like below:
>
> <h2 tal:replace='myvariable'>This title will be replaced</h2>
>
> Using those techniques the templates can be kept and viewed
> as valid HTML. Of course there is price - complicated rules
> are hard. But for the simple replacements like common header
> and footer this idea is sound.
I can think of two ways to do it: alternate namespace (convenient for
XHTML):
my $template = Template->new({
START_TAG => quotemeta('<tt:'),
END_TAG => quotemeta('/>'),
});
or hidden in comments
my $template = Template->new({
TAG_STYLE => 'html', # '<!--' and '-->'
});
--
Mark Thomas Thomas.Mark-R43zzhgHTig@xxxxxxxxxxxxxxxx
Internet Systems Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
|