Class ThymeleafModule
java.lang.Object
com.google.inject.AbstractModule
com.peterphi.std.guice.web.rest.templating.thymeleaf.ThymeleafModule
- All Implemented Interfaces:
com.google.inject.Module
public class ThymeleafModule
extends com.google.inject.AbstractModule
Module to configure the ThymeLeaf templating engine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
org.thymeleaf.TemplateEngine
getTemplateEngine
(org.thymeleaf.templateresolver.ITemplateResolver resolver) Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
ThymeleafModule
public ThymeleafModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
getTemplateEngine
@Provides public org.thymeleaf.TemplateEngine getTemplateEngine(org.thymeleaf.templateresolver.ITemplateResolver resolver)
-