public class MustacheView
extends org.springframework.web.servlet.view.AbstractTemplateView
View using the Mustache template engine.| 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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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, setServletContextpublic 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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
renderMergedTemplateModel in class org.springframework.web.servlet.view.AbstractTemplateViewExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.