Darko Krizic <[EMAIL PROTECTED]> writes:
> As you know projects must be finished until yesterday. It would be a dream
> if we could share the templates between Enhydra and Perl. The only problem I
> see here is the performance. Enhydra compiles the java and the HTML pages
> and creates methods and a DOM model. Doing this on the fly (for mod_perl)
> would be a big drawback in performance. Maybe there should be some kind of
> precompiling.
Smart templaters cache templates and results. The REALLY smart ones
compile the templates into perl code and hold them as a reference to
an anonymous sub.
> The problem with many templating systems is the fact that they invent a new
> language like "<td>$variable</td>" which is usually not displayable in the
> Browser so that the designer and the programmer must work tightly.
Read Andy Wardley's paper on www.template-toolkit.org. He talks about
its positioning between the programmer and designer.
For the record, I've just done a by-the-book mod_perl-ed Template
thing and it's very quick. I'll be doing a lot more on deep-purple.com
very soon.
Dave // Still boring
--
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star http://www.deep-purple.com
Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
-----------------------------------------------------------------