Search in sources :

Example 1 with ServletContextHashModel

use of org.craftercms.engine.freemarker.ServletContextHashModel in project engine by craftercms.

the class CrafterFreeMarkerView method initServletContext.

@Override
protected void initServletContext(ServletContext servletContext) throws BeansException {
    super.initServletContext(servletContext);
    servletContextHashModel = new ServletContextHashModel(servletContext, getObjectWrapper());
    applicationContextAccessor = new ApplicationContextAccessor(getApplicationContext());
}
Also used : ApplicationContextAccessor(org.craftercms.engine.util.spring.ApplicationContextAccessor) ServletContextHashModel(org.craftercms.engine.freemarker.ServletContextHashModel)

Aggregations

ServletContextHashModel (org.craftercms.engine.freemarker.ServletContextHashModel)1 ApplicationContextAccessor (org.craftercms.engine.util.spring.ApplicationContextAccessor)1