Small restructuring. Have I mentioned how much I hate having to write modules that work in both CommonJS and the browser?

This commit is contained in:
wycats
2010-12-12 13:33:17 -08:00
parent 57e72c9fd2
commit ec948c7382
5 changed files with 98 additions and 90 deletions
+2 -2
View File
@@ -52,7 +52,6 @@ module Handlebars
CONTEXT = V8::Context.new
CONTEXT.instance_eval do |context|
context["exports"] = nil
context["Handlebars"] = {}
context["p"] = proc do |val|
p val
@@ -69,11 +68,12 @@ module Handlebars
puts
end
Handlebars::Spec.js_load('lib/handlebars/parser.js')
Handlebars::Spec.js_load('lib/handlebars/compiler.js');
Handlebars::Spec.js_load('lib/handlebars/ast.js');
Handlebars::Spec.js_load('lib/handlebars/jison_ext.js');
Handlebars::Spec.js_load('lib/handlebars/handlebars_lexer.js')
Handlebars::Spec.js_load('lib/handlebars/printer.js')
Handlebars::Spec.js_load('lib/handlebars/parser.js')
Handlebars::Spec.js_load('lib/handlebars/runtime.js')
Handlebars::Spec.js_load('lib/handlebars/utils.js')
Handlebars::Spec.js_load('lib/handlebars.js')