Further progress towards modularization.

At this point, I have only 2 fails in the Node build, but I'm doing a
bunch of manual stuff locally and still have a bunch of hacks.
This commit is contained in:
Yehuda Katz
2013-07-24 05:03:27 +00:00
parent da130f7745
commit f5c8484ea0
15 changed files with 129 additions and 79 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
require('./common');
global.Handlebars = require('../../lib/handlebars');
global.Handlebars = require('../../zomg/lib/handlebars');
global.CompilerContext = {
compile: function(template, options) {
var templateSpec = Handlebars.precompile(template, options);
console.log(templateSpec);
return Handlebars.template(eval('(' + templateSpec + ')'));
},
compileWithPartial: function(template, options) {