perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Grimm <>
Subject Re: Design decision / embperl or mason? :-)
Date Tue, 23 Mar 2004 22:18:57 GMT
On Tue, 23 Mar 2004, Oliver Brandt wrote:

> One of the most important things for me is the MVC - pardigm because I
> want to separate content and logic. How can I implement this method
> with embperl? (Because embperl is embedding perlcode in HTML) It's
> more the JavaServerPages/Java Beans concept I prefer. Only snippets of
> perlcode in my HTML and behind that the more logical stuff if needed.

We use traditional perl modules for the majority of our logic; web pages
only contain code to output into HTML.  As such, we only use the full
power of Embperl a few places.  However, it gives us our separation, and
allows us to write simple command-line tools that use the same
libraries, which gives us batch capabilities which we didn't want to
work into our web pages, in addition to command-line debugging tools.

Note that this requires web server restarts to change the logic, rather
than just editing the pages.  However, given our formalized processes
for making updates, virtually all of our changes are made during
scheduled downtime windows; breakfix changes are very rare.  As such,
taking the web server down briefly is ok for us.  If it wasn't, there's
a trick we could do involving multiple web servers and port redirection
(which I'm sure you've seen, given the length of time you've been
reading the group).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message