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, jakarta.servlet.http.HttpServletRequest 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, 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 current JStache model
      model - the current Spring MVC model
      request - the current servlet request