projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug 441
[org.ibex.core.git]
/
src
/
org
/
ibex
/
Ibex.java
diff --git
a/src/org/ibex/Ibex.java
b/src/org/ibex/Ibex.java
index
ba80775
..
8d86da7
100644
(file)
--- 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?
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);
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 (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;
}
t.apply((Box)a);
return a;
}