Still I think in the long run, templating systems are a dead branch of the evolutionary tree:
and, some would say, so are we homosapiens... I mean, in the long run we will all be extinct. Let's do it better while we are still alive. ;-).

What I am more intrigued by is...

they are neither pure programs, nor pure mark-up but a hybrid of the two, which IMHO combine the bad things of both for little benefit.
what, in your view, are the "bad things" of programs and mark-up that templating systems combine? I am very curious.

Hybrids are, evolutionarily speaking, almost always stronger than "pure genes" types, and should survive longer than either. Usually hybrids (and, IMHO, definitely H::T) combine the best of two or more types.

Programming is great for utilizing logic to generate content. Mark-up is great for purposing the content for display. Because of the nature of the content, at times a tiny amount of logic creeps into mark-up, but that is ok, because mark-up is greatly enhanced by that logic.

I would say that templating systems are as good a hybrid as Aspirin is. It is not pure Acetyl Salicylate -- in its pure form it would be too sour and probably digest our stomach lining -- and it is not pure starch -- that would be too yucky and useless. But, it is a perfect mixture of the essential acid for its painkiller-ness and the bland base for making it safe and palatable. And very effective at preventing headaches -- just like the templating systems.

Finally, as you rightly said, "whatever works for one, need not work for someone else." In this case, Kiat, the OP seems to find that a templating system works. I commend Kiat on doing the best to separate logic from display using what works.


In reply to Re: Re: Re: Re: HTML::Template - what's the rule of thumb? by punkish
in thread HTML::Template - what's the rule of thumb? by kiat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.