Access the Environment "localContextStack" ....

Tom Fennelly <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi guys.

 From inside the execute method of a TemplateDirectiveModel 
implementation, is it possible to gain access to the local context stack 
on the passed Environment instance (freemarker 2.3.11)? 

I have a template like this...

    <#list bean.aaas as aaa>   
    <@writeBean aaa />
    </#list>

Inside the <@writeBeans> Directive impl, I can see (with a debugger) 
that it has the data I want (the aaa loop instance).  Problem is... the 
access method is protected :(

T.

------------------------------------------------------------------------------
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.