public class MustacheView extends AbstractTemplateView
View using the Mustache template engine.SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTEDEFAULT_CONTENT_TYPEloggerPATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE| Constructor and Description | 
|---|
MustacheView()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
checkResource(Locale locale)  | 
protected void | 
renderMergedTemplateModel(Map<String,Object> model,
                         HttpServletRequest request,
                         HttpServletResponse response)  | 
void | 
setCharset(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, setServletContextgetApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContextpublic 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(String charset)
charset - the charset to use for reading template filespublic boolean checkResource(Locale locale) throws Exception
checkResource in class AbstractUrlBasedViewExceptionprotected void renderMergedTemplateModel(Map<String,Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception
renderMergedTemplateModel in class AbstractTemplateViewExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.