cowboyd / handlebars.rb

Ruby Bindings for Handlebars.js
http://www.handlebarsjs.com
161 stars 67 forks source link

Clean clone of handlebars.rb fails tests: "no such module 'handlebars/compiler/parser'" #11

Closed mmurray closed 12 years ago

mmurray commented 12 years ago

I followed the instructions in the readme:

git clone git@github.com:cowboyd/handlebars.rb.git #git it
cd handlebars.rb #go to it
git submodule update --init #pull down handlebars.js
rspec spec/ #test it

When I run rspec spec/ I get a bunch of failures, all due to the same thing:

 Failure/Error: subject.compile(*args)
     V8::Error:
       no such module 'handlebars/compiler/parser'

Sure enough, vendor/handlebars/lib/handlebars/compiler/parser.js does not exist. I poked through the handlebars.js Git repo and it doesn't seem like that file was ever checked in.. what am I missing here?

mmurray commented 12 years ago

Needed to rake compile handlebars.js

jimothyGator commented 11 years ago

@murz I encountered the same error. The steps for doing so are not obvious, at least not to me. I did figure it out:

cd vendor/handlebars
rake compile
cd ../..
rspec spec/

I created pull request #20 to have these instructions added to README.