X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2FIbex.java;h=8d86da7b933235c2cdc0b87542b3137d6b4d1329;hb=2c8a770c56b8945afc27b0122c610bdfd84687de;hp=ba80775264dad03af79a6462e18e12d84ae2746d;hpb=08f6a0c4e25a46920c500c7d3a1739df5df145b7;p=org.ibex.core.git diff --git a/src/org/ibex/Ibex.java b/src/org/ibex/Ibex.java index ba80775..8d86da7 100644 --- a/src/org/ibex/Ibex.java +++ b/src/org/ibex/Ibex.java @@ -335,7 +335,8 @@ public final class Ibex extends JS.Cloneable { 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); @@ -347,6 +348,7 @@ public final class Ibex extends JS.Cloneable { 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; }