Re: [SMARTY] XML Templates
| From: | Ben Godfrey | Date: | Thu, 09 May 2002 13:32:08 +0000 |
| Subject: | Re: [SMARTY] XML Templates | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4113@lists.php.net to get a copy of this message | ||
Dwerg,
Sorry, I did say don't shoot me down on these. I'm just trying to promote discussion because I think that there are things to be gained from XML formalizing the template language.
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.Mainly because all my data is in MySQL and also I want access to other resources that PHP offers, like Mime_Mail from PEAR, but still want to separate logic and content. I want templates to be monkey-simple, which XSLT doesn't really do. Anyway, this doesn't seem to be really working. How about we turn it around and say can anyone think of any reason that converting templates to XML syntax would be explicitly bad, apart from the redevelopment time/costs? As an aside, the config file language is an even stronger candidate for XMLisation. Ben Godfrey