MustacheView

Spring MVC View using the Mustache template engine.

Author

Brian Clozel

Dave Syer

Phillip Webb

Since

2.0.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
open var beanName: String
Link copied to clipboard
Link copied to clipboard
val DEFAULT_CONTENT_TYPE: String = "text/html;charset=ISO-8859-1"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open var servletContext: ServletContext
Link copied to clipboard
val SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE: String = "springMacroRequestContext"
Link copied to clipboard
Link copied to clipboard
open var url: String

Functions

Link copied to clipboard
open fun addStaticAttribute(name: String, value: Any)
Link copied to clipboard
Link copied to clipboard
open fun checkResource(locale: Locale): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun render(model: Map<String, out Any>, request: HttpServletRequest, response: HttpServletResponse)
Link copied to clipboard
open fun setAllowRequestOverride(allowRequestOverride: Boolean)
Link copied to clipboard
open fun setAllowSessionOverride(allowSessionOverride: Boolean)
Link copied to clipboard
open fun setAttributes(attributes: Properties)
Link copied to clipboard
open fun setAttributesCSV(propString: String)
Link copied to clipboard
open fun setAttributesMap(attributes: Map<String, out Any>)
Link copied to clipboard
open fun setCharset(charset: String)
Set the charset used for reading Mustache template files.
Link copied to clipboard
open fun setCompiler(compiler: Mustache.Compiler)
Set the Mustache compiler to be used by this view.
Link copied to clipboard
open fun setExposeContextBeansAsAttributes(exposeContextBeansAsAttributes: Boolean)
Link copied to clipboard
open fun setExposedContextBeanNames(exposedContextBeanNames: Array<String>)
Link copied to clipboard
open fun setExposePathVariables(exposePathVariables: Boolean)
Link copied to clipboard
open fun setExposeRequestAttributes(exposeRequestAttributes: Boolean)
Link copied to clipboard
open fun setExposeSessionAttributes(exposeSessionAttributes: Boolean)
Link copied to clipboard
open fun setExposeSpringMacroHelpers(exposeSpringMacroHelpers: Boolean)
Link copied to clipboard
open fun toString(): String