On 2014-06-09 22:41:12 +0000, Rob said:
> Just want to confirm I'm not missing something: From looking at the
> source, it seems that the only way to access the Freemarker
> configuration object would be to implement my own version of
> FreemarkerViewRenderer so I can make freemarker.template.Configuration
> accessible. Is that correct, or is there a better way to accomplish
> this?
I have had success with subclassing ViewBundle, overriding
getViewConfiguration() to return a map from “.ftl” (the view renderer’s
suffix) to another map containing the options I wanted to set in
Freemarker. In my case I set the “object_wrapper” property to
“my.custom.ObjectWrapper(2.3.21)” and Freemarker happily created and
used my custom object wrapper.
Greetings,
Bombe