Map<String, Object> attributes = new HashMap<>();
attributes.put("message", "Hello FreeMarker World");
// The hello.ftl file is located in directory:
// src/test/resources/spark/examples/templateview/freemarker
return new ModelAndView(attributes, "hello.ftl");
}, new FreeMarkerTemplateEngine());
}