Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
One of the addition benefits of Template (beyond what merlyn said),
There is nothing that merlyn listed in his post that shows an advantage of Template over HTML::Template. He did place it on equal ground but did not state any features it held that HTML::Template did not.
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.
Your point about easily changing the display method from HTML to something else is well-taken as an advantage of Template It was a key point in davorg's article which I found on his website and which seems to have vaporized from perl.com However, consider this part of your statement:
you should not have to touch any perl code save to point the Template processor to the right place.

But the obvious question is: you will have to change the display 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:

[% 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 %]

This is just brainstorming. I don't have a full answer.




  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-20 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found