Re: HTML_Template_Sigma: Feature suggestion - treating blocks as namespaces
| From: | Alexey Borzov | Date: | Sat, 31 Dec 2005 07:36:57 +0000 |
| Subject: | Re: HTML_Template_Sigma: Feature suggestion - treating blocks as namespaces | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22400@lists.php.net to get a copy of this message | ||
Hi,
Markus Ernst wrote:
Working with the Sigma template engine I encountered that sometimes it is useful to have the same variable names in different blocks of a template. It is possible to handle this by using global variables, clearing variables after parsing a block, and setting the variables in proper order. Anyway it would be very handy to have an option of treating blocks as namespaces, thus preserve variables already set in other blocks. Example:The idea is interesting, but it will take a non-trivial amount of work to implement it, as all the internals of Sigma will need to be redone.