Re: [Freemarker-user] macro override
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Monday, December 21, 2009, 6:37:56 PM, Guo Du wrote: > On Mon, Dec 21, 2009 at 4:12 PM, Daniel Dekany <[email protected]> wrote: >> I don't think it addresses the original problem however. There after >> you have "overridden" the macro, you should be able to call the >> overridden one from the overriding one... > Yes, I agree that there is no way to call the same macro inside the > overrided macro. > > The trick could get the parent macro content, doesn't give you access > to original macro. > > I wondering weather we can assign the parent macro to a new variable > name dynamically? If we can, then we can assign a new name such as > parent_foo could be invoked later in new macro foo. I couldn't figure out a way for that... not immediately at least. But anyway, te parent_<originalMacroName> trick will fail when you try to extend a macro library that also extended something. > -Guo > -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev