Gem Version

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:

gem 'without-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install without-rails


Add the following directive to your Javascript manifest file (application.js):

//= require without

or to some .coffee file:

#= require without

Later, inside any .coffee you can:

t = withOut.$compile ->
  div id: @

$('#test').html t 'me'