log.info("No 'freemarker.template.path' context-param, "
+ "defaulting to '/WEB-INF/templates'");
rootPath = "/WEB-INF/templates";
}
rootPath = rootPath.replaceAll("/$", "");
config.setTemplateLoader(new ClassTemplateLoader(getClass(), rootPath));
// TODO: make the usage of a freemaker properties file an explicit
// parameter declared in the servlet context instead of magic
// classloading auto-detect. That way the application could
// explicitly override the defaults