Interface JStachioModelView

All Superinterfaces:
View
All Known Implementing Classes:
HelloModelAndView

public interface JStachioModelView extends View
Another way to use JStachio with Spring MVC is to have models implement Springs View interface. You can enforce that your models implement this interface with JStacheInterfaces. Alternatively one can call of(Object) on the model and return the result.

This view will by default use the static jstachio singleton and if configured correctly that will be the spring version.

This approach has pros and cons. It makes your models slightly coupled to Spring MVC but allows you to return different views if say you had to redirect on some inputs (RedirectView).

Author:
agentgt