-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hoseong Hwang
committed
Dec 19, 2011
1 parent
e8710f3
commit d5f0d79
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |