Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: HTML::Seamstress is not a templating engine?

by pKai (Priest)
on Aug 03, 2009 at 19:44 UTC ( #785535=note: print w/ replies, xml ) Need Help??


in reply to HTML::Seamstress is not a templating engine?

Also in the same chapter Parr writes:

Interestingly, by this definition of a template, XSL ... style sheets are not templates at all because style sheets specify a set of XSLT tree transformations whose emergent behavior is an XML or HTML document. XSL style sheets are programs like servlets, albeit declarative in nature rather than imperative.

And I was never absolutely sure where the real dinstinction is drawn here.

When your "traditional" templating system tends to become a Turing complete programming language, the distinction blurrs away anyway.

I like in XSLT that it won't break the tree structure of the "template" I'm working in (XML, XHTML). So typically for my taste it's a better fit. Which might only be exactly that.. a matter of taste.

The same might or might not apply to you and your HTML::Seamstress.


Comment on Re: HTML::Seamstress is not a templating engine?
Download Code
Re^2: HTML::Seamstress is not a templating engine?
by metaperl (Curate) on Aug 03, 2009 at 20:24 UTC
    The same might or might not apply to you and your HTML::Seamstress.
    Seamstress uses HTML::Tree, so well-formedness is guaranteed. it even does some auto-corrections. A colleague of mine was trying a browser hack where he tried to stick form tags inside a table and it kept rejecting his HTML.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://785535]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-09-19 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls