HttpServletResponse response,
@RequestParam(value = "name", required = true) String name,
@RequestParam(value = "path", required = true) String path,
ModelMap model) throws Exception {
Template template = new Template();
template.setName(name);
template.setPath(path);
File theme = new File(FreemakerTemplateEngine.WEBAPP_PATH + THEME_PATH
+ path + "/" + name);
String content = FileUtils.readFileToString(theme, "utf-8");
template.setContent(content);
// 将内容放到表单里面
model.addAttribute("templateAttribute", template);
return "/admin/template/templateForm";
}