public class MustacheViewResolver
extends org.springframework.web.servlet.view.AbstractTemplateViewResolver
ViewResolver
for Mustache.FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX
Constructor and Description |
---|
MustacheViewResolver()
Create a
MustacheViewResolver backed by a default instance of a
Mustache.Compiler . |
MustacheViewResolver(com.samskivert.mustache.Mustache.Compiler compiler)
Create a
MustacheViewResolver backed by a custom instance of a
Mustache.Compiler . |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.servlet.view.AbstractUrlBasedView |
buildView(String viewName) |
protected Class<?> |
requiredViewClass() |
void |
setCharset(String charset)
Set the charset.
|
setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers
applyLifecycleMethods, canHandle, createView, getAttributesMap, getCacheKey, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRedirectHosts, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHosts, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames
clearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolved
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public MustacheViewResolver()
MustacheViewResolver
backed by a default instance of a
Mustache.Compiler
.public MustacheViewResolver(com.samskivert.mustache.Mustache.Compiler compiler)
MustacheViewResolver
backed by a custom instance of a
Mustache.Compiler
.compiler
- the Mustache compiler used to compile templatesCopyright © 2018 Pivotal Software, Inc.. All rights reserved.