use of org.thymeleaf.spring4.SpringTemplateEngine in project yqq by yeycfri.
the class WebConfig method templateEngine.
@Bean
public TemplateEngine templateEngine(TemplateResolver templateResolver) {
SpringTemplateEngine templateEngine = new SpringTemplateEngine();
templateEngine.setTemplateResolver(templateResolver);
return templateEngine;
}
use of org.thymeleaf.spring4.SpringTemplateEngine in project tutorials by eugenp.
the class ThymeleafConfiguration method templateEngine.
@Bean
public SpringTemplateEngine templateEngine() {
SpringTemplateEngine templateEngine = new SpringTemplateEngine();
templateEngine.setTemplateResolver(thymeleafTemplateResolver());
return templateEngine;
}
use of org.thymeleaf.spring4.SpringTemplateEngine in project tutorials by eugenp.
the class TestConfig method templateEngine.
@Bean
public SpringTemplateEngine templateEngine() {
final SpringTemplateEngine templateEngine = new SpringTemplateEngine();
templateEngine.setTemplateResolver(templateResolver());
return templateEngine;
}
use of org.thymeleaf.spring4.SpringTemplateEngine in project irida by phac-nml.
the class IridaApiServicesConfig method exportUploadTemplateEngine.
/*
* Template engine for constructing ncbi export submissions
*/
@Bean(name = "exportUploadTemplateEngine")
public SpringTemplateEngine exportUploadTemplateEngine() {
SpringTemplateEngine exportUploadTemplateEngine = new SpringTemplateEngine();
ClassLoaderTemplateResolver classLoaderTemplateResolver = new ClassLoaderTemplateResolver();
classLoaderTemplateResolver.setPrefix("/ca/corefacility/bioinformatics/irida/export/");
classLoaderTemplateResolver.setSuffix(".xml");
classLoaderTemplateResolver.setTemplateMode(TemplateMode.XML);
classLoaderTemplateResolver.setCharacterEncoding("UTF-8");
exportUploadTemplateEngine.addTemplateResolver(classLoaderTemplateResolver);
return exportUploadTemplateEngine;
}
use of org.thymeleaf.spring4.SpringTemplateEngine 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;
}
Aggregations