Weld-js-rails is a project mainly written in ..., it's free.
A gem to automate using weld with Rails 3.1
Weld! For Rails! So great.
This gem vendors weld for browser use in Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use.
In your Gemfile, add this line:
gem "weld-js-rails"
Then, run bundle install
.
Add the following line to application.js
//= require weld
You're done!
If you'd like weld integrated with jQuery, add the following line to application.js after weld:
//= require weld-jquery
Then you can do this:
$('.contacts').weld([ { name: 'John' } ])
This gem does not support Rails 3.0, just download weld from https://github.com/hij1nx/weld.