An open API service indexing awesome lists of open source software.

https://github.com/amiel/weld-js-rails

A gem to automate using weld with Rails 3.1
https://github.com/amiel/weld-js-rails

Last synced: about 1 year ago
JSON representation

A gem to automate using weld with Rails 3.1

Awesome Lists containing this project

README

          

# Weld-js-rails

Weld! For Rails! So great.

## Rails 3.1

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.

### Installation

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!

### jQuery

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' } ])

## Rails 3.0

This gem does not support Rails 3.0, just download weld from https://github.com/hij1nx/weld.