String name = getParameter(0).toString();
String path = template.getPath(name, false);
File file = new File(path);
template.associate(file);
try {
in.insertReader(name, new TemplateReader(new InputStreamReader(
new FileInputStream(file), template.getEngine().getEncoding())));
} catch (IOException e) {
in.addMessage("文件打开错误");
}
}