Class ThymeleafConfiguration

java.lang.Object
formflow.library.config.ThymeleafConfiguration

@Configuration public class ThymeleafConfiguration extends Object
Provides configuration for the Thymeleaf templates, besides the default.
  • 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 the cfa-uswds-templates/ directory.

      The resolver will be configured to look in the cfa-uswds-templates directory for .html files. The assumed encoding will be UTF-8. The templates will not be cached.

      Returns:
      a new resolver configured to work with library uswds templates.