David Hodgkinson wrote:
> 
> 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.
As have I. :-) Modifying the existing modules to use Template Toolkit
instead of HTML::Template (A great module for simpler tasks than what we
were doing) and redoing the whole site (about 25 _very_ dynamic pages)
took a month. Of course, we were killing ourselves to make that
deadline, but the point is that Template Toolkit is great! I can't wait
for version 2 to come out...

-- 
Drew Taylor
Vialogix Communications, Inc.
501 N. College Street
Charlotte, NC 28202
704 370 0550
http://www.vialogix.com/

Reply via email to