spring-framework / org.springframework.web.servlet.view.groovy / GroovyMarkupView

GroovyMarkupView

open class GroovyMarkupView : AbstractTemplateView

An AbstractTemplateView subclass based on Groovy XML/XHTML markup templates.

Spring's Groovy Markup Template support requires Groovy 2.3.1 and higher.

Author
Brian Clozel

Author
Rossen Stoyanchev

Since
4.1

See Also
GroovyMarkupViewResolverGroovyMarkupConfigurer<a href="http://groovy-lang.org/templating.html#_the_markuptemplateengine">

Constructors

<init>

GroovyMarkupView()

An AbstractTemplateView subclass based on Groovy XML/XHTML markup templates.

Spring's Groovy Markup Template support requires Groovy 2.3.1 and higher.

Functions

checkResource

open fun checkResource(locale: Locale): Boolean

setTemplateEngine

open fun setTemplateEngine(engine: MarkupTemplateEngine): Unit

Set the MarkupTemplateEngine to use in this view.

If not set, the engine is auto-detected by looking up a single GroovyMarkupConfig bean in the web application context and using it to obtain the configured MarkupTemplateEngine instance.