|
in reply to Re: RFC - Template::Empty in thread RFC - Template::Empty
This reminds me somewhat of Petal,
Actually not really, what the OP wants is much closer to my own HTML::Seamstress. Petal embeds a mini-language within HTML... Seamstress is pure Perl and pure HTML and nothing else.
Seamstress takes its inspiration from XMLC and I am very grateful to lachoy for mentioning it. Petal takes its inspiration from TAL.
To understand the difference between push-style templating (Seamstress) and pull-style templating (tt/mason/petal/html::template, etc) you should read
Terence Parr's paper on the subject.
Re: Petal is pull-style... like TT/mason - Seamstress is push-style
by Rhandom (Curate) on Feb 25, 2008 at 17:30 UTC
|
| [reply] |
|
|
Thanks for the link to the paper. I found it interesting. I also found it somewhat biased and amusing.
I am grateful for the part just before Section 7.1 where he lists the 5 things that determine whether a template system is push-style or pull-style. I think you would agree that only Seamstress is push-style. Everything else on CPAN (including Petal) and HTML_Tree (not on CPAN) is pull-style.
I found it amusing because section 7.1 is labeled "Pull Strategy Violates Separation" - but he never treats the topic of whether "Push Strategy Violates separation."
I dont think it can. Can you provide an example of where it does? You only have meld3, Seamstress and XMLC and StringTemplate to pick on, because those the only push-style templating systems out there.
| [reply] [d/l] |
|
|
| [reply] |
|
|
|
|
|
|
|
|
Re: Petal is pull-style... like TT/mason - Seamstress is push-style
by metaperl (Curate) on Feb 25, 2008 at 15:01 UTC
|
| [reply] [d/l] |
|
|
Actually, your synopsis is good.
I hate it when people does this; make me think. I think too much already. I'm not good at that.*sigh* How many times have I discovered that I've cut corners with TT, in the rush to implement / fix some borken functionality, brought more logic into the templates than I meant. It always sneaks in, because it's possible and convenient.
I've read your synopsis, quickstart and what has been written here so far today, and I will give your HTML::Seamstress a spin the next week.
| [reply] |
|
|
| [reply] [d/l] |
|
|