Re: Change a macro in a namespace

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Wednesday, December 9, 2009, 9:00:28 PM, Ista Pouss wrote:

> Hi,
>
> I read in
> http://freemarker.org/docs/dgui_misc_namespace.html#autoid_26
> it's possible to change a variable in a namespace with "assign".
>
> is it possible to change a macro ? how ?

With a plain assigment. In FreeMarekr macros/functions are just
variables.

> For instance, very stupid exemple in a lib.ftl :
>
> <#macro oyeee>
> <b>YES</b>
> </#macro>
>
> in main;ftl :
> <#import "lib.ftl" as lib>
>
> <!-- IS IT POSSIBLE ? -->
> <#assign oyeee = foooo in lib>

Yes... it should work.

> <#macro foooo>
> <b>VERY YES</b>
> </#macro>
>
>
> Thanks.
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.