|
Posted by Ivo Jansch on 08/18/05 10:09
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
Navigation:
[Reply to this message]
|