therabidbanana/tilt-jade — Issue #1: V8::JSError: Unexpected token while
Author: rstacruz
Created: 2011-10-17 06:58:21+00:00
State: open

```
V8::JSError in Projects#show

Showing /Users/rsc/myproject/app/views/layouts/project.html.haml where line #3 raised:

Unexpected token while
(in /Users/rsc/myproject/app/assets/javascripts/project/chrome.jst.jade)
```

Trace:

```

at :1189:3
execjs (1.2.7) lib/execjs/ruby_racer_runtime.rb:9:in `block in initialize'
execjs (1.2.7) lib/execjs/ruby_racer_runtime.rb:78:in `block in lock'
execjs (1.2.7) lib/execjs/ruby_racer_runtime.rb:76:in `Locker'
execjs (1.2.7) lib/execjs/ruby_racer_runtime.rb:76:in `lock'
execjs (1.2.7) lib/execjs/ruby_racer_runtime.rb:7:in `initialize'
execjs (1.2.7) lib/execjs/ruby_racer_runtime.rb:107:in `new'
execjs (1.2.7) lib/execjs/ruby_racer_runtime.rb:107:in `compile'
execjs (1.2.7) lib/execjs/module.rb:27:in `compile'
tilt-jade (0.0.3) lib/tilt-jade/jade_js.rb:44:in `context'
tilt-jade (0.0.3) lib/tilt-jade/jade_js.rb:74:in `compile'
tilt-jade (0.0.3) lib/tilt-jade/template.rb:27:in `evaluate'
tilt (1.3.3) lib/tilt/template.rb:76:in `render'
sprockets (2.0.0) lib/sprockets/context.rb:175:in `block in evaluate'
sprockets (2.0.0) lib/sprockets/context.rb:172:in `each'
...
```

Looking into this, it seems that V8 chokes on the current Jade source gem.

I've tried making the `.jst.jade` file have nothing but `div`, by the way.