public class MustacheView extends AbstractUrlBasedView
View
using the Mustache template engine.logger, REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME
Constructor and Description |
---|
MustacheView() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkResourceExists(Locale locale) |
protected reactor.core.publisher.Mono<Void> |
renderInternal(Map<String,Object> model,
MediaType contentType,
ServerWebExchange exchange) |
void |
setCharset(String charset)
Set the charset used for reading Mustache template files.
|
void |
setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
Set the JMustache compiler to be used by this view.
|
afterPropertiesSet, getUrl, setUrl, toString
createRequestContext, getApplicationContext, getDefaultCharset, getModelAttributes, getRequestContextAttribute, getRequestDataValueProcessor, getSupportedMediaTypes, obtainApplicationContext, render, resolveAsyncAttributes, setApplicationContext, setDefaultCharset, setRequestContextAttribute, setSupportedMediaTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isRedirectView
public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
Mustache.Compiler
is expected in the Spring
application context which is used to compile Mustache templates.compiler
- the Mustache compilerpublic void setCharset(String charset)
charset
- the charset to use for reading template filespublic boolean checkResourceExists(Locale locale) throws Exception
checkResourceExists
in class AbstractUrlBasedView
Exception
protected reactor.core.publisher.Mono<Void> renderInternal(Map<String,Object> model, MediaType contentType, ServerWebExchange exchange)
renderInternal
in class AbstractView
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.