New myth to bust :
- With Smarty, we create too many templates, and the site becomes impossible to maintain.
I directly refer to this article. I hope the writer had honestly managed a large project with his method. Using OOP to output html is ineffective and inefficient. The success of PHP is a good example of what I'm talking about.
I would say that the maintainability of one site 's design essentially depends of the skills of the CSS engineer/dev rather than the number of templates.
I saw one "ignorant guy" (sorry for the adjective, but I couldn't find better :-) telling around the place that caching mechanism were useless if a website was fast enough...
About XSL
And when someone talks with me about xsl for HTML templating, I'm crying out loud. I've been developing templates and views in XSLT for three years before discovering how stupid XSLT is for this kind of tasks.
I needed to use DOM objects instead of PHP objects (and all the troubles of memory space & exec speed that it implies) the errors in the templates syntax were not explicit (blank html page syndrom), XSLT needs a long term investment for non interesting features for HTML (need to learn xpath, xslt, advanced xml)...
XSL is good to adapt XML data in a certain format (specified by a DTD or not) into another format.
I would say that the maintainability of one site 's design essentially depends of the skills of the CSS engineer/dev rather than the number of templates.
- Smarty is slow to process
I saw one "ignorant guy" (sorry for the adjective, but I couldn't find better :-) telling around the place that caching mechanism were useless if a website was fast enough...
- We can do everything in PHP, so why using Smarty ?
About XSL
And when someone talks with me about xsl for HTML templating, I'm crying out loud. I've been developing templates and views in XSLT for three years before discovering how stupid XSLT is for this kind of tasks.
I needed to use DOM objects instead of PHP objects (and all the troubles of memory space & exec speed that it implies) the errors in the templates syntax were not explicit (blank html page syndrom), XSLT needs a long term investment for non interesting features for HTML (need to learn xpath, xslt, advanced xml)...
XSL is good to adapt XML data in a certain format (specified by a DTD or not) into another format.
Aucun commentaire:
Enregistrer un commentaire