without-rails wraps withOut template engine for simple use with rails asset pipeline. The gem includes the development (non-minified) source for ease of exploration. The asset pipeline will minify in production.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install without-rails
//= require without
or to some .coffee file:
#= require without
Later, inside any .coffee you can:
t = withOut.$compile -> div id: @ $('#test').html t 'me'