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(Locale locale) |
protected reactor.core.publisher.Mono<Void> |
renderInternal(Map<String,Object> model,
org.springframework.http.MediaType contentType,
org.springframework.web.server.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
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 org.springframework.web.reactive.result.view.AbstractUrlBasedView
Exception
protected reactor.core.publisher.Mono<Void> renderInternal(Map<String,Object> model, org.springframework.http.MediaType contentType, org.springframework.web.server.ServerWebExchange exchange)
renderInternal
in class org.springframework.web.reactive.result.view.AbstractView
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.