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

    Modifier and Type
    Method
    Description
    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.
  • 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 current JStache model
      model - the current model
      request - the current request context