Skip to content

Commit

Permalink
Add README.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoseong Hwang committed Dec 19, 2011
1 parent e8710f3 commit d5f0d79
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Dust-Rails

This gem adds the Dust template and a corresponding assets engine to the asset pipeline in Rails => 3.1 applications.

For detailed information about Dust, visit <http://akdubya.github.com/dustjs/>

## Installing

Add the following line to your Gemfile:

gem 'dust-rails'

Update your bundle:

bundle install

## Usage

Place individual Dust template file in their own file with `.js.dust` extension:

<!-- app/assets/javascripts/dusts/demo.js.dust -->
Hello {name}! You have {count} new messages.

In your javascript files, require `dust-core` and your own template files.

<!-- app/assets/javascripts/application.js -->
require dust-core
require_tree ./dusts

All done. Your template files will be compiled and registered.

0 comments on commit d5f0d79

Please sign in to comment.