Re: [SMARTY] Compiler tag with modifiers
| From: | Ivo Jansch | Date: | Thu, 18 Aug 2005 07:09:39 +0000 |
| Subject: | Re: [SMARTY] Compiler tag with modifiers | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12975@lists.php.net to get a copy of this message | ||
Hi,
Cal Henderson wrote:
> how is your 'parse' compiler different from eval?
> http://smarty.php.net/manual/en/language.function.eval.php
I think there are 2 differences:
- The compiled code is stored (using eval it's not) so it doesn't have
to be parsed on each request.
- It adds the template code using an include mechanism, so even when
cached, if the template contains dynamic (uncachable) plugins, it
will work. From what I understood from the code, using eval, even
dynamic plugins are cached.
Actually it works much like the {include} directive. It's mostly a
plugin-version of the {include} directive.
Greetings,
Ivo