Module io.jstach.opt.spring.webmvc
Package io.jstach.opt.spring.webmvc
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, jakarta.servlet.http.HttpServletRequest 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 Spring MVC modelrequest
- the current servlet request
-