Make the environment reusable.

This commit is contained in:
Blake Embrey
2013-12-28 21:35:40 -05:00
parent 6c2137a420
commit 2f0c96b618
3 changed files with 27 additions and 14 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ var create = function() {
hb.compile = function(input, options) {
return compile(input, options, hb);
};
hb.precompile = precompile;
hb.precompile = function (input, options) {
return precompile(input, options, hb);
};
hb.AST = AST;
hb.Compiler = Compiler;