Re: doc unclear
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Friday, June 27, 2008, 10:56:28 AM, Attila Szegedi wrote: > 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. And that's why I have started that sentence with "*If* you need to access the runtime FTL environment". I don't think it's confusing. > 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 > _______________________________________________ > FreeMarker-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freemarker-user -- Best regards, Daniel Dekany ------------------------------------------------------------------------- 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