-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Review Template configuration properties for web-specific keys #15156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
See also #11199 which might affect how we structure these properties. |
Spring Boot configuration support for templating enginesSpring Boot offers templating configuration for Mustache, Thymeleaf, Freemarker and Groovy Templates. Templating engines can be used in various situations:
When looking at the configuration properties, one can find the basic configuration for setting
Other configuration keys are specific to web infrastructure:
In some cases we've even dealt with web stacks in different namespaces:
Some configuration keys look generic enough, but they can actually configure how the resolved
Using a templating engine in Spring BootThe most common case seems to be about using a templating engine to render HTML pages Non-web applications are also supported. Depending on the use case and the choice of If an application needs to have both web and non-web templates, the required configuration JMustacheBy default Spring Boot builds a Mustache compiler that escapes HTML characters. ThymeleafSpring Boot will auto-configure a Note that the Thymeleaf view resolver can resolve view names like Last, developers can contribute custom FreemarkerThe Spring Boot auto-configuration contributes a So this SummaryThe templating engine support in Spring Boot is really web-centric. There is little benefit in separating web and non-web settings; it would make things complicated Tuning the templating engine for the web case should be our top priority, as long as we re-expose |
In #15131, the team decided to review and possibly move the configuration keys in
FreeMarkerProperties
,GroovyTemplateProperties
andMustacheProperties
that are related to web-only use cases.Doing so should:
The text was updated successfully, but these errors were encountered: