public class MustacheView
extends org.springframework.web.reactive.result.view.AbstractUrlBasedView
View
using the Mustache template engine.Constructor and Description |
---|
MustacheView() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkResourceExists(java.util.Locale locale) |
protected reactor.core.publisher.Mono<java.lang.Void> |
renderInternal(java.util.Map<java.lang.String,java.lang.Object> model,
org.springframework.http.MediaType contentType,
org.springframework.web.server.ServerWebExchange exchange) |
void |
setCharset(java.lang.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
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(java.lang.String charset)
charset
- the charset to use for reading template filespublic boolean checkResourceExists(java.util.Locale locale) throws java.lang.Exception
checkResourceExists
in class org.springframework.web.reactive.result.view.AbstractUrlBasedView
java.lang.Exception
protected reactor.core.publisher.Mono<java.lang.Void> renderInternal(java.util.Map<java.lang.String,java.lang.Object> model, org.springframework.http.MediaType contentType, org.springframework.web.server.ServerWebExchange exchange)
renderInternal
in class org.springframework.web.reactive.result.view.AbstractView