Search in sources :

Example 1 with JMustacheTemplateLoader

use of org.springframework.web.servlet.view.mustache.jmustache.JMustacheTemplateLoader in project alf.io by alfio-event.

the class DataSourceConfiguration method getTemplateLoader.

@Bean
public JMustacheTemplateLoader getTemplateLoader() {
    JMustacheTemplateLoader loader = new JMustacheTemplateLoader();
    loader.setPrefix("/WEB-INF/templates");
    loader.setSuffix(".ms");
    loader.setResourceLoader(resourceLoader);
    return loader;
}
Also used : JMustacheTemplateLoader(org.springframework.web.servlet.view.mustache.jmustache.JMustacheTemplateLoader)

Aggregations

JMustacheTemplateLoader (org.springframework.web.servlet.view.mustache.jmustache.JMustacheTemplateLoader)1