Package formflow.library.config
Class ThymeleafConfiguration
java.lang.Object
formflow.library.config.ThymeleafConfiguration
Provides configuration for the Thymeleaf templates, besides the default.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.thymeleaf.templateresolver.ClassLoaderTemplateResolverCreates a new ClassLoaderTemplateResolver to be able to resolve templates in thecfa-uswds-templates/directory.
-
Constructor Details
-
ThymeleafConfiguration
public ThymeleafConfiguration()
-
-
Method Details
-
cfaUswdsTemplateResolver
@Bean @ConditionalOnProperty(name="form-flow.design-system.name", havingValue="cfa-uswds") public org.thymeleaf.templateresolver.ClassLoaderTemplateResolver cfaUswdsTemplateResolver()Creates a new ClassLoaderTemplateResolver to be able to resolve templates in thecfa-uswds-templates/directory.The resolver will be configured to look in the
cfa-uswds-templatesdirectory for.htmlfiles. The assumed encoding will beUTF-8. The templates will not be cached.- Returns:
- a new resolver configured to work with library uswds templates.
-