Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Push style templating systems

by chromatic (Archbishop)
on Mar 14, 2008 at 23:19 UTC ( [id://674312]=note: print w/replies, xml ) Need Help??


in reply to Re: Push style templating systems
in thread Push style templating systems

I'd refer to it as something like "substitution-only" templating.

One difference is that Template::Recall works on fragments, and the logic for assembling those fragments into a larger document is in the code, not the template. It's not a big thing, but it's different from other template-as-a-whole-document approaches.

Replies are listed 'Best First'.
Re^3: Push style templating systems
by perrin (Chancellor) on Mar 14, 2008 at 23:34 UTC
    As others have pointed out though, there's no reason that other tools can't be used that way. I've certainly written TT2 and HTML::Template code that worked on fragments and assembled the results with perl code.

    I don't want to slam Template::Recall and friends. I think minimalist templating (viva sprintf!) has its place and TT2 is overkill for many small jobs. I just want more descriptive terminology.

      Of course. What I like about Template::Recall is that it enforces its style. It's most natural to use it in a clean way. Not everyone likes that approach, and that's fine. I'm a big fan of interfaces that are difficult to abuse (and I've seen my share of code-in-the-template abuses, as well as mini-language-turned-maxi abuses).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2025-07-16 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.