http://www.perlmonks.org?node_id=993052


in reply to Re: Embeding Perl in HTML the PHP way
in thread Embeding Perl in HTML the PHP way

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:

If you are still "embedding programming_language into HTML," then I cordially advise you that you should re-consider that approach.

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