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, 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
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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
renderMergedTemplateModel
in class org.springframework.web.servlet.view.AbstractTemplateView
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.