Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Push style templating systems

by chromatic (Archbishop)
on Mar 14, 2008 at 23:19 UTC ( #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
Node Status?
node history
Node Type: note [id://674312]
help
Chatterbox?
and the monastery is silent...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-06-23 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (552 votes). Check out past polls.