multiple template dirs compile
| From: | Luna Kid | Date: | Sat, 13 Dec 2003 04:51:35 +0000 |
| Subject: | multiple template dirs compile | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1983@lists.php.net to get a copy of this message | ||
> 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.
OK, I see. (Funny to hear; I had the same preg-limitation with
my own template processor, which I ceased working on when I
saw Smarty going the same way, but being MUCH more developed.)
Perhaps one day Smarty could become a PHP extension lib so we
could improve it more freely, without worrying about performance?...
BTW, can one safely use multiple template dirs? The comments
at http://www.phpinsider.com/smarty-forum/viewtopic.php?p=6335
suggest that multiple compile dirs may be needed to that.
Is that really the cases? And if yes, how can you associate
multiple compile dirs to those multiple template dirs?
Thanks,
Sz.