Search in sources :

Example 1 with TilesDialect

use of org.thymeleaf.extras.tiles2.dialect.TilesDialect in project gs-spring-security-3.2 by rwinch.

the class WebMvcConfiguration method templateEngine.

@Bean
public SpringTemplateEngine templateEngine(ClassLoaderTemplateResolver templateResolver) {
    SpringTemplateEngine templateEngine = new SpringTemplateEngine();
    templateEngine.setTemplateResolver(templateResolver);
    templateEngine.addDialect(new TilesDialect());
    return templateEngine;
}
Also used : SpringTemplateEngine(org.thymeleaf.spring4.SpringTemplateEngine) TilesDialect(org.thymeleaf.extras.tiles2.dialect.TilesDialect) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 TilesDialect (org.thymeleaf.extras.tiles2.dialect.TilesDialect)1 SpringTemplateEngine (org.thymeleaf.spring4.SpringTemplateEngine)1