Re: [SMARTY-DEV] nested ...templates?
| From: | Andrei Zmievski | Date: | Mon, 15 Dec 2003 03:39:10 +0000 |
| Subject: | Re: [SMARTY-DEV] nested ...templates? | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1984@lists.php.net to get a copy of this message | ||
On Fri, 12 Dec 2003, Monte Ohrt wrote:
> We can't do recursion with the tokenizer (unrolling bracket pairs), so
> these kind of things are out of the question. Maybe at some point we can
> move away from using preg_* for the parser, but that isn't too practical
> at the moment.
Unless you write a custom C extension to parse the template, preg_* is
your best bet. I can't imagine how much slower a parser written in pure
PHP (without preg_*) would be.
-Andrei