Re: [SMARTY] include_block
| From: | Paul Pogonyshev | Date: | Fri, 22 Dec 2006 00:07:09 +0000 |
| Subject: | Re: [SMARTY] include_block | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13654@lists.php.net to get a copy of this message | ||
boots wrote:
> I've never used it myself, but there is user contributed plugin at the wiki
> that is something similar to what you propose:
> http://smarty.incutio.com/?page=BlockWrapPlugin
$smarty = clone($smarty)
I believe this is inefficient. May be wrong.
> It may be better to implement your own solution as a pair of compiler plugins
> rather than a block plugin that the above plugin uses.
It may well be as long as it can be done cleanly. If someone can propose a
clean plugin (or make _smarty_include public and with a better/more understandable
calling scheme), it should be no worse than original proposal.
Paul