in reply to
Petal is pull-style... like TT/mason - Seamstress is push-style
in thread RFC - Template::Empty
++
Thanks for the link to the paper. I found it interesting. I also found it somewhat biased and amusing.
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."
There are also statements such as "Strictly speaking the URL structure of the site belongs to the controller." This is nice in theory and is true in ideal situations. After 10 years of work in non-ideal situations I've found that it "strictly" isn't true. Sometimes templates contain links that take you in and out of the controller loop.
The true bias is revealed when the last section of the paper is used to present his "new" templating system which does clear up some fuzzy boundaries - but doesn't provide anything truly remarkable over existing systems.
Formal papers are nice in an academic sense, but that doesn't mean his experience has any direct bearing on the experience of others. He is welcome to argue his point, but in the end - all of the various models have managed to get the job done for people who have used them. Existing solutions are certainly good enough for all practical purposes.
my @a=qw(random brilliant braindead); print $a[rand(@a)];
Push templating strategy cannot violate separation by metaperl (Curate) on Feb 26, 2008 at 15:21 UTC |
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] |
|
| [reply] [d/l] |
|
|
| [reply] [d/l] |
|
|
|