use of io.vertx.reactivex.ext.web.templ.thymeleaf.ThymeleafTemplateEngine in project gravitee-access-management by gravitee-io.
the class ThymeleafConfiguration method getTemplateEngine.
@Bean
public ThymeleafTemplateEngine getTemplateEngine() {
ThymeleafTemplateEngine thymeleafTemplateEngine = ThymeleafTemplateEngine.create(vertx);
TemplateEngine templateEngine = thymeleafTemplateEngine.getDelegate().getThymeleafTemplateEngine();
// set template resolvers
DomainBasedTemplateResolver overrideTemplateResolver = (DomainBasedTemplateResolver) overrideTemplateResolver();
overrideTemplateResolver.setTemplateEngine(templateEngine);
templateEngine.setTemplateResolver(overrideTemplateResolver);
templateEngine.addTemplateResolver(defaultTemplateResolver());
return thymeleafTemplateEngine;
}
Aggregations