|
|
| more useful options | |
| PerlMonks |
Re^2: Embeding Perl in HTML the PHP wayby davido (Bishop) |
| on Sep 11, 2012 at 19:58 UTC ( #993052=note: print w/ replies, xml ) | Need Help?? |
|
Separation of concerns (the Model, View, Controller) approach is, of course, the primary goal of all of the modern frameworks (including Catalyst, Dancer, and Mojolicious, as well as those popular in other languages). And I agree that the notion of embedding the bulk of an application in the HTML (ie, in the template) is the wrong way to go. But I think you're taking it a little far when you say:
Surely you must mean that the application's business logic should reside in "model" code, the web application's minimal wiring should exist in "controller" code, and the view should reside in the templates, wherein embedded logic is kept to the minimum required, no more, and no less (which is different from reconsidering the concept of embedding altogether). Maybe it would help me to understand the line you're drawing if it were accompanied with an example. Dave
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||