public class MustacheView extends AbstractTemplateView
View
using the Mustache template engine.SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE
DEFAULT_CONTENT_TYPE
logger
PATH_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, setExposeSpringMacroHelpers
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
public 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 AbstractTemplateView
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.