001package io.jstach.opt.spring.example.hello;
002
003import org.springframework.web.servlet.View;
004
005import io.jstach.jstache.JStache;
006import io.jstach.opt.spring.webmvc.JStachioModelView;
007
008/**
009 * Model that implements {@link JStachioModelView} using a resource template that is in
010 * src/main/resources/views. The path will be expanded via the
011 * {@link io.jstach.jstache.JStacheConfig} on the projects module.
012 * <p>
013 * Because this model implements a Spring {@link View} you can return it directly from a
014 * controller.
015 * @author agentgt
016 * @param message The greeting message
017 */
018@JStache(path = "hello")
019public record HelloModelAndView(String message) implements JStachioModelView {
020
021}