[Typo3-dev] Better templating: PHP!
dan frost
dan at danfrost.co.uk
Thu Sep 22 09:49:23 CEST 2005
> XML advantages:
>
> - you can validate it
> - you can process it
> - it's easyer to read comparing PHP includes
> - good combination with xhtml and other xml
> - it seems to be an establishe standard
>
XML has the other advantage that you don't have to
edit it - because of the wide availability of
XML-objects (DOM stuff etc) it is relatively easy
to build a GUI on top of the XML object model.
> XML disadvantages:
>
> - still limited support by editors
> - often more code to insert comparing other configuration languages
> - not the easiest to learn
>
re: inserting more code: Becuase of schemas / DTD
(i.e. strict object models) you could prompt the
user. For example "you can insert the following
things here: <someTag content="menu" />...
<someTag content="mainContent" />..."
> Summing it up. It sounds like a usefull proposal to me. But again.
> Simply let the user use use the template system of his choice.
>
Yes, and no. My main concern with templating
(design->html->working page) in TYPO3 is that it
IS slower than just bashing it out in PHP - and
maintaining it is also harder (assuming you're
using a strict object model and managing you php
templates well). I'm sorry but, anything that
slows me down isn't going to win points from me...
That is my central point.
Dan
More information about the TYPO3-dev
mailing list