Package org.lilystudio.smarty4j

Examples of org.lilystudio.smarty4j.TemplateReader


    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("文件打开错误");
    }
  }
View Full Code Here

TOP

Related Classes of org.lilystudio.smarty4j.TemplateReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.