${greeting}<
Spring MVC with JTE @Controller public class HelloController { @GetMapping("/") public String hello(Model model) { model.addAttribute("name", "World"); return "hello"; } }{greeting}<
@Path("/") public class HelloResource { @CheckedTemplate public static class Templates { public static native TemplateInstance hello(String name); } @GET @Produces(MediaType.TEXT_HTML) public TemplateInstance hello() { return Templates.hello("World"); } }