On 10/15/02 3:55 PM, William R Ward wrote:
> For me, it's because TT allows Perl to be embedded in the template.
> That way lies madness.  The advantage of a templating system is that
> you can leave the template maintenance to someone who doesn't know
> programming

Try asking someone who "doesn't know programming" which of the following is
"programming"

    [% foo %]
    <foo>...</foo>
    $foo
    <% $foo->bar %>
    foo.bar
    foo->bar
    $foo.bar

IME, anything that has fixed syntax requirements is pretty much equally
hard/easy to understand for "non-programmers."  They don't know or care
what's doing the "magic" part.  For all they know, [% foo %] is Perl or C++
or Java.
 
> and let the programmer focus on the logic.  If logic gets
> mixed in with markup, then you might as well not be using here
> documents.

Again IME, once the aforementioned non-programmers get over the syntax
hurdle or whatever system you choose, it's trivial for them to understand
and use simple conditionals and even loops--regardless of what "language"
they are written in.

(whoops...what list is this? ;)
-John

Reply via email to