phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Phpgroupware-developers] TemplateEngine Question/Proposal


From: Kai Hofmann
Subject: RE: [Phpgroupware-developers] TemplateEngine Question/Proposal
Date: Mon, 4 Aug 2003 07:42:52 +0200

Hi Dave,

> > I took a deeper look into the TemplateEngine(s) and found:
> 
> Which branch?

HEAD
 
> > each of these classes seems to be another modified version of an 
> > older 
> > (and buggy) version of the phplibs excelent template engine.
> > The bug of this old phplib template engine is that it can not 
> > handle blocks within blocks correctly.
> 
> Our version seems to handle this ok.  The version in phpgw is 
> a modified version of the phplib tpl engine, as are our db classes.

for what are the modifications are required?
I think it might be better to stay by the original, because only in this
way you will get updates without problems.
About which version are you talking? I would like to verify it.

> and also use it for xml - because there 
> > is no
> > difference if
> > this template engine modifies html or xml.
> 
> How would you merge the changes? as there are quite a modifications in
> the class.

simple use the original template engine from within the xslttemplate engine
and 
only add the transformation code there. This is much better than copy/paste
and modify
a perfectly working engine. 

> I have not looked at the new xslt tpl engine, but afaik it has extra
> functionality to do the tranformations.

Thats ok, but there is still no requirement (from my point of view) to
copy/paste the code
and modify it. It would be better to first use the phplib template engine to
fill in values
into an xml template, handle blocks etc. and then in a second step xsl
transform the resulting
xml document. So xslttemplate is for me another abstraction layer ontop of
the existing template engine.

Greetings

    Kai

-- 
*****    Open Source und Linux im professionellen Einsatz    *****
**  komplexe Mailserver, Groupware, Office: sprechen Sie uns an **
Dipl.-Inform. Kai Hofmann                    Team Softwarelösungen
pro|business AG, EXPO Plaza 1 (Deutscher Pavillon), 30539 Hannover
E-Mail: address@hidden,   Tel.: 0511/60066-332, Fax: -355
WWW: http://www.probusiness.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]