Template syntax: Variables: {VARIABLE_NAME} Blocks: <!-- BEGIN: BlockName --> <!-- BEGIN: SubBlockName --> <!-- END: SubBlockName --> <!-- END: BlockName -->
{VARIABLE_NAME}
<!-- BEGIN: BlockName -->
<!-- BEGIN: SubBlockName -->
<!-- END: SubBlockName -->
<!-- END: BlockName -->
License: Apache 2.0
38394041424344
public class Template { private Jtpl t; public Template(Reader template) throws IOException { t = new Jtpl(template); }
43444546474849505152
t = new Jtpl(template); } public Template(String templateSource) { try { t = new Jtpl(new StringReader(templateSource)); } catch (IOException e) { throw new RuntimeException(e); // should be impossible with StringReader } }
5253545556575859606162
} public Template(File templateFile) throws FileNotFoundException { FileReader r = new FileReader(templateFile); try { t = new Jtpl(templateFile); } catch (IOException e) { try { r.close(); } catch (Exception nothingToDoAboutIt) {} }