use of nz.net.ultraq.thymeleaf.decorators.strategies.GroupingStrategy in project tutorials by eugenp.
the class WebMVCConfig method templateEngine.
private TemplateEngine templateEngine(ITemplateResolver templateResolver) {
SpringTemplateEngine engine = new SpringTemplateEngine();
engine.addDialect(new LayoutDialect(new GroupingStrategy()));
engine.addDialect(new Java8TimeDialect());
engine.setTemplateResolver(templateResolver);
engine.setTemplateEngineMessageSource(messageSource());
return engine;
}
Aggregations