Module io.jstach.opt.spring.webflux
Package io.jstach.opt.spring.webflux
Interface JStachioModelViewConfigurer
public interface JStachioModelViewConfigurer
User can provide instances in the application context and they will be applied to each
JStachioModelView
instance before rendering.- Author:
- dsyer
-
Method Summary
-
Method Details
-
configure
void configure(Object page, Map<String, Object> model, org.springframework.web.server.ServerWebExchange request) Configures a JStache model with the current request and traditional Spring model before being rendered.This is useful to add specific request meta data like CSRF token to the JStache model so that the Controllers do not have to worry about doing that.
- Parameters:
page
- the currentJStache
modelmodel
- the current modelrequest
- the current request context
-