Using different exposure levels for different template data

Rebecca Younes <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <C8343950.52C%[email protected]>
I want most of my template data to be read-only, so I set the exposure level of the configuration’s object wrapper to EXPOSE_PROPERTIES_ONLY. I have a couple of special lists that I want the templates to be able to add to. The only way I see to do this is temporarily swap in a different object wrapper, add those objects to the template, and then restore the original object wrapper. Is there a more elegant way to do this? I don’t want to use a different configuration because all the other properties of the configuration should remain the same.

Thanks.

Rebecca

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
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.