Everything is working now on the new VM except for partials and inverse sections

This commit is contained in:
wycats
2010-12-15 23:42:53 -08:00
parent ec948c7382
commit e15d675a64
7 changed files with 64 additions and 55 deletions
+6 -1
View File
@@ -54,10 +54,14 @@ module Handlebars
context["exports"] = nil
context["p"] = proc do |val|
p val
p val if ENV["DEBUG_JS"]
end
context["puts"] = proc do |val|
puts val if ENV["DEBUG_JS"]
end
context["puts_node"] = proc do |val|
puts context["Handlebars"]["PrintVisitor"].new.accept(val)
puts
end
@@ -76,6 +80,7 @@ module Handlebars
Handlebars::Spec.js_load('lib/handlebars/printer.js')
Handlebars::Spec.js_load('lib/handlebars/runtime.js')
Handlebars::Spec.js_load('lib/handlebars/utils.js')
Handlebars::Spec.js_load('lib/Handlebars/vm.js')
Handlebars::Spec.js_load('lib/handlebars.js')
end
end