macros don't follow #extends
Buck Golemon <[email protected]> Mon, 21 Nov 2011 19:20:35 -0800
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <CANDQx1qTsw1sYV64WzJQ=144m5N6hEBwkQg78p+nCMQ8v6y35w@mail.gmail.com> |
--===============2027865141839540857== Content-Type: multipart/alternative; boundary=0016e6dd8cf96c8e8004b24a4989 --0016e6dd8cf96c8e8004b24a4989 Content-Type: text/plain; charset=ISO-8859-1 If I define a macro in one template, and #extend that template elsewhere, the macro is not available in the extended template, as expected. When looking at the cheetah code, I see why this is: since the macros are implemented purely in the parser, and the #extended (parent, superclass) template is never parsed, the macro never exists in the context of the #extended (child, subclass) template. What would it take to get this working? What would be the best approach? -buck --0016e6dd8cf96c8e8004b24a4989 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote"><div><div class=3D"h5"><div class=3D"gmail_quote= ">If I define a macro in one template, and #extend that template elsewhere,= the macro is not available in the extended template, as expected.<div><br>= </div> <div>When looking at the cheetah code, I see why this is: since the macros = are implemented purely in the parser, and the #extended (parent, superclass= ) template is never parsed, the macro never exists in the context of the #e= xtended (child, subclass) template.</div> <div><br></div><div>What would it take to get this working?</div><div>What = would be the best approach?</div><div><br></div><font color=3D"#888888"><di= v>-buck</div> </font></div><br> </div></div></div><br> --0016e6dd8cf96c8e8004b24a4989-- --===============2027865141839540857== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d --===============2027865141839540857== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss --===============2027865141839540857==--