Re: XML input
| From: | Manuel Lemos | Date: | Fri, 07 Jun 2002 00:01:49 +0000 |
| Subject: | Re: XML input | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-132@lists.php.net to get a copy of this message | ||
Hello,
On 06/06/2002 04:42 PM, Olivier Guilyardi wrote:
Hi It's been months now that I've had the following idea : Obtaining the template's variable values from the XML output of a php script, using Expat and Output Control functions. I believe this is interesting for several reasons: - it allows to think in PHP, to think and write embedded code - Meanwhile it abstracts the design logic - HTML templates are designer-friendly, XSLT scripts are not - Expat seems reasonably fast I would like your opinion on the subject. Do you think it's a good idea to work on ? Have you heard about similar projects ? I am now thinking about implementing this as a Smarty plugin, but it seems as some kind of "Input Filter" lacks. Am I wrong ?It's slow. It won't scale unless you cache the output of your engine. Processing XML is slow and if you can live without it, it is recommended that you do it. -- Regards, Manuel Lemos