public JSScope getStatic() {
try {
// FIXME background?
- if (t == null) t = Template.buildTemplate(parentkey + ".ixt", Stream.getInputStream(parent.get(parentkey + ".ixt")), ibex);
+ if (t == null) t = Template.buildTemplate(parentkey + ".t", Stream.getInputStream(parent.get(parentkey + ".t")), ibex);
return t.staticScope;
} catch (Exception e) {
Log.error(this, e);
if (nargs == 9999) return t;
if (nargs != 1) throw new JSExn("FIXME can only call with one arg");
getStatic();
+ if (t == null) throw new JSExn("No such template " + parentkey);
t.apply((Box)a);
return a;
}