Re: doc unclear

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
A method model is a Java class. If you need to access the processing  
Environment object (the primary entry point to FreeMarker API while  
processing a template) within its Java code when your method is  
invoked, that's how you do it. That's what the doc is saying. I think  
it's good to have that information at that point for method model  
implementers -- those who need it will be glad it's there. If you  
don't need it, well, good for you :-)

Attila.

On Jun 27, 2008, at 8:08 AM, Zemian Deng wrote:

> Hi,
>
> The last sentence on
> http://freemarker.org/docs/pgui_datamodel_method.html seems unclear to
> me.
>
> What is this have to do with implementing Methods model?
>
> "If you need to access the runtime FTL environment (read/write
> variables, get the current locale, etc.), you can get it with
> Environment.getCurrentEnvironment()."
>
> -Z

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
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.