Sunday, October 18, 2009, 12:44:00 AM, Jeremy Chone wrote:
> Hi,
>
> I have a set of templateDirective that I am adding to my Freemarker
> configuration using setSharedVariable.
>
> I would like to simulate a name space. For example, I would like to
> set the template directives directive1 and directive2 under the
> under name "moduleA", to be able to call
>
> [@moduleA.directive1 .../]
>
> and
>
> [@moduleA.directive2 .../]
>
> Can I have the just do?
>
> conf("moduleA.directive1",myDirective1);
> ...
>
> or do I have to use another name space separator other than "."?
The shared variable name is not parsed. You can simulate a name-space
by simply putting the directives into a Map, and then use the Map as
the shared variable with name "moduleA".
> Jeremy,
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
FreeMarker-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-user