}
private TemplateRenderer getTemplate(String path)
throws TemplateException
{
jauk.Resource templateResource = new jauk.Resource(path,ResourcePrefix,ResourceSuffix);
Template template = this.get(templateResource);
if (null == template){
template = new Template(path);
jauk.Resource templateFileResource = new jauk.Resource(ResourceDir,templateResource);
try {
template.setTemplateSourceHapax(gap.Strings.TextFromString(ReadToString(templateFileResource)));
template.setLastModified(templateFileResource.getLastModified());
this.put(templateResource,template);
return new gap.hapax.TemplateRendererImpl(this,template);
}
catch (IOException tryresource){
try {
template.setTemplateSourceHapax(gap.Strings.TextFromString(ReadToString(templateResource)));
template.setLastModified(templateResource.getLastModified());
this.put(templateResource,template);
return new gap.hapax.TemplateRendererImpl(this,template);
}
catch (IOException iox){