interface GroovyMarkupConfig
Interface to be implemented by objects that configure and manage a Groovy MarkupTemplateEngine for automatic lookup in a web environment. Detected and used by GroovyMarkupView.
Author
Brian Clozel
Since
4.1
See Also
GroovyMarkupConfigurer
abstract fun getTemplateEngine(): MarkupTemplateEngine
Return the Groovy MarkupTemplateEngine for the current web application context. May be unique to one servlet, or shared in the root context. |
open class GroovyMarkupConfigurer : TemplateConfiguration, GroovyMarkupConfig, ApplicationContextAware, InitializingBean
An extension of Groovy's groovy.text.markup.TemplateConfiguration and an implementation of Spring MVC's GroovyMarkupConfig for creating a By default this bean will create a MarkupTemplateEngine with:
This bean must be included in the application context of any application using the Spring MVC GroovyMarkupView for rendering. It exists purely for the purpose of configuring Groovy's Markup templates. It is not meant to be referenced by application components directly. It implements GroovyMarkupConfig to be found by GroovyMarkupView without depending on a bean name. Each DispatcherServlet can define its own GroovyMarkupConfigurer if desired. Note that resource caching is enabled by default in MarkupTemplateEngine. Use the Spring's Groovy Markup template support requires Groovy 2.3.1 or higher. |