Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 surveying the Monastery: (19)
As of 2015-07-06 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls