Re: [SMARTY] Compiler tag with modifiers
Ivo Jansch <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php