public class MustacheView
extends org.springframework.web.servlet.view.AbstractTemplateView
View using the Mustache template engine.| Constructor and Description |
|---|
MustacheView() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkResource(java.util.Locale locale) |
protected void |
renderMergedTemplateModel(java.util.Map<java.lang.String,java.lang.Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setCharset(java.lang.String charset)
Set the charset used for reading Mustache template files.
|
void |
setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
Set the Mustache compiler to be used by this view.
|
applyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpersafterPropertiesSet, getUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
Typically this property is not set directly. Instead a single Mustache.Compiler is
expected in the Spring application context which is used to compile Mustache
templates.
compiler - the Mustache compilerpublic void setCharset(java.lang.String charset)
charset - the charset to use for reading template filespublic boolean checkResource(java.util.Locale locale)
throws java.lang.Exception
checkResource in class org.springframework.web.servlet.view.AbstractUrlBasedViewjava.lang.Exceptionprotected void renderMergedTemplateModel(java.util.Map<java.lang.String,java.lang.Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
renderMergedTemplateModel in class org.springframework.web.servlet.view.AbstractTemplateViewjava.lang.Exception