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()
Create a new
MustacheView instance. |
MustacheView(com.samskivert.mustache.Template template)
Create a new
MustacheView with the specified template. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
renderMergedTemplateModel(Map<String,Object> model,
HttpServletRequest request,
HttpServletResponse response) |
void |
setTemplate(com.samskivert.mustache.Template template)
Set the Mustache template that should actually be rendered.
|
applyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpersafterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, 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, requiredContextClass, setApplicationContextpublic MustacheView()
MustacheView instance.setTemplate(Template)public MustacheView(com.samskivert.mustache.Template template)
MustacheView with the specified template.template - the source templatepublic void setTemplate(com.samskivert.mustache.Template template)
template - the mustache templateprotected void renderMergedTemplateModel(Map<String,Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception
renderMergedTemplateModel in class AbstractTemplateViewExceptionCopyright © 2015 Pivotal Software, Inc.. All rights reserved.