public class MustacheView extends AbstractUrlBasedView
View
using the Mustache template engine.logger, REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME
BINDING_CONTEXT_ATTRIBUTE
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, formatViewName, getApplicationContext, getBeanName, getDefaultCharset, getModelAttributes, getRequestContextAttribute, getRequestDataValueProcessor, getSupportedMediaTypes, obtainApplicationContext, render, resolveAsyncAttributes, resolveAsyncAttributes, setApplicationContext, setBeanName, 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