Re: [SMARTY] XML Templates
| From: | Manfred 'dwerg' Stienstra | Date: | Thu, 09 May 2002 12:57:15 +0000 |
| Subject: | Re: [SMARTY] XML Templates | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4110@lists.php.net to get a copy of this message | ||
On Thursday 09 May 2002 05:02 am, Ben Godfrey wrote:
> XML Smarty templates could (within reason) be reused by XSLT-based systems.
Why would this be an advantage, smarty was meant to be a html template
engine, not a complete document creation library. Keeping the code simple
keeps the code fast.
> Smarty could also be reimplemented using PHP's XML/XSL features. Monte,
> as this code is in C would this provide speed increases or other
> benefits? (not that I'm questioning whether it's fast enough
> already, I'm just brainstorming).
Regular expressions also come from C code, I actually think xml parsing would
slow down the engine.
> Syntax checking becomes uber-easy, semantic checking tricky as it ever was.
Syntax checking is already very easy, I don't think this is a significant
reason to change a complete codebase.
--
An finally a general remark:
Why don't you just stop using smarty and just create xml files with some of
the great tools, and then use xslt to transform it to html of pdf or whatever
you want.
dwerg