Re: Nested Java directives - best practice on how to make values available to inner directive?

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
On 2008.02.01., at 9:56, Alistair Israel wrote:

> I mean, what's the equivalent of
> Configuration.addAutoInclude("mynamespace", "mymacros.ftl") for custom
> Java directives?

I don't think you can have namespaces for  Java directives in 2.3  
unfortunately... Without namespaces, you can do:

configuration.setSharedVariable("myMacro", new MyMacro());

Attila.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.