RE: [htmltmpl] IF tag breaks V in MVC paradigm?
Brought to you by:
samtregar
From: Jesse E. <je...@er...> - 2002-09-04 04:05:45
|
Hey All -- Kenny Smith writes: > If any piece of the MVC paradigm isn't being followed in an > application that > uses HTML::Template, it's only in the Model or the Controller, > which really > isn't in Mr. Tregar's scope. :) If I may add one thing to this: The goal of HTML::Template was *not* to be the "View" in Model-View-Controller. The goal of HTML::Template was actually to maximally separate application code from HTML code, and to provide an interface which was easier for non-programmer HTML designers to work with. If it so happens that the goal of separation of HTML from Perl is compatible with a particular approach to development (such as MVC), that is entirely coincidental. FWIW, IMHO, <TMPL_IF> enhances the separation of HTML from Perl code. Before <TMPL_IF> it would be necessary to have a <TMPL_VAR NAME="CONDITIONAL_OUTPUT_HERE">, which was much worse. I also believe that the decision to only provide Boolean operators (not relational: <, >, etc.) also enhances the separation of code from HTML. If you disagree, you can always create your own filter. Warmest regards, -Jesse- -- Jesse Erlbaum The Erlbaum Group je...@er... Phone: 212-684-6161 Fax: 212-684-6226 |