org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver Java Examples
The following examples show how to use
org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ThymeleafEngine.java From microprofile-starter with Apache License 2.0 | 5 votes |
@PostConstruct public void init() { AbstractConfigurableTemplateResolver resolver = new JessieFileTemplateResolver(filesLocator); resolver.setTemplateMode("TEXT"); engine = new TemplateEngine(); engine.setTemplateResolver(resolver); }
Example #2
Source File: ThymeleafV3TemplateOptionsApplier.java From ogham with Apache License 2.0 | 5 votes |
@Override public void apply(ITemplateResolver templateResolver, TemplateResolverOptions options) { if (templateResolver instanceof AbstractConfigurableTemplateResolver) { // TODO: handle other options ? AbstractConfigurableTemplateResolver resolver = (AbstractConfigurableTemplateResolver) templateResolver; set(resolver::setTemplateMode, options.getTemplateMode()); set(resolver::setCacheable, options.getCacheable()); } }
Example #3
Source File: WordprocessingMLThymeleafTemplate.java From docx4j-template with Apache License 2.0 | 4 votes |
public AbstractConfigurableTemplateResolver getTemplateResolver() { return templateResolver; }
Example #4
Source File: WordprocessingMLThymeleafTemplate.java From docx4j-template with Apache License 2.0 | 4 votes |
public void setTemplateResolver(AbstractConfigurableTemplateResolver templateResolver) { this.templateResolver = templateResolver; }