cowboyd / handlebars.rb

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

Use execjs instead of depending directly on therubyracer #44

Open thedrow opened 8 years ago

thedrow commented 8 years ago

Currently it's not possible to run handlebars.rb on JRuby or to switch to mini_racer. Can we please use execjs instead of invoking therubyracer directly?

Rambatino commented 5 years ago

I'm also keen for this

gi commented 2 years ago

This can't be done to maintain compatibility with this library because execjs only allows eval of JavaScript.

However, I wrote a version that uses mini_racer: https://github.com/gi/handlebars-ruby.