cowboyd/handlebars.rb — Issue #5: Cannot require with handlebars.js 1.0 beta5
Author: ippy04
Created: 2011-12-29 04:13:17+00:00
State: open

Getting the following error - I believe it's because base.js is now in the handlebars directory. I'm new at this - any idea how to fix the loader to respect the relative paths in the JS instead of always assuming /js/lib?

/Users/ippy04/Code/forked/handlebars.rb/lib/handlebars/loader.rb:25:in `require': no such file: /Users/ippy04/Code/forked/handlebars.rb/js/lib/base.js (V8::JSError)
from at /Users/ippy04/Code/forked/handlebars.rb/js/lib/handlebars/utils.js:1:55
from /Users/ippy04/Code/forked/handlebars.rb/lib/handlebars/loader.rb:33:in `require'
from at /Users/ippy04/Code/forked/handlebars.rb/js/lib/handlebars.js:6:1
from /Users/ippy04/Code/forked/handlebars.rb/lib/handlebars/loader.rb:33:in `require'
from /Users/ippy04/Code/forked/handlebars.rb/lib/handlebars.rb:20:in `block in handlebars'
from /Users/ippy04/Code/forked/handlebars.rb/lib/handlebars.rb:19:in `module_eval'
from /Users/ippy04/Code/forked/handlebars.rb/lib/handlebars.rb:19:in `handlebars'
from /Users/ippy04/Code/forked/handlebars.rb/lib/handlebars.rb:15:in `register_helper'
from /Users/ippy04/Code/forked/handlebars.rb/spec/handlebars_spec.rb:23:in `block (2 levels) in '

Thanks!