note
princepawn
<blockquote>
One of the addition benefits of Template (beyond what merlyn said),
</blockquote>
There is nothing that [merlyn] listed in his post that
shows an advantage of [cpan://Template] over
[cpan://HTML::Template]. He did place it on
equal ground but did not state any features it held that
[cpan://HTML::Template] did not.
<blockquote>
is that Template is language neutral,
and as WAP-enabled sites become more common, using Template over HTML::Template may become
beneficial, since all you need to do for delieving WAP vs HTML is change the template file; you should not
have to touch any perl code save to point the Template processor to the right place. And then adding
text-only becomes simplier as well.
</blockquote>
Your point about easily changing the display method from HTML
to something else is well-taken as an advantage of [cpan://Template]
It was a key point in
[davorg]'s
<a href=http://www.mag-sol.com/Articles/tt2.html>
article
</a>
which I found on his website and which seems to have
vaporized from <a href=http://www.perl.com>perl.com</a>
However, consider this part of your statement:
<blockquote>
you should not
have to touch any <B>perl</B> code save to point the Template processor to the right place.
</blockquote>
<P>
But the obvious question is: you will have to change the
<B>display</B> code, right? How would one change all the
HTML tags to the formatting conventions of another format? Ie,
plain text, XML, HTML, or WAP? One way would be to code in
"Template HTML" so that you could transform all the tags at once,
ie:
<code>
[% H1 %] This is a header
[% OL %]
[% LI %] we can make an HTML file if we want,
[% LI %] but we could make some thing else
[% LI %] just as easy.
[% OL %]
</code>
<P>
This is just brainstorming. I don't have a full answer.
75645
75926