Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
kolo committed Feb 27, 2013
1 parent 33cba26 commit 4213c50
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
@@ -1,6 +1,6 @@
# handlebars-rails

Handlebars.js for Rails 3.2.12
Handlebars.js for Rails 3.2. Handlebars version is 1.0.0-rc.3.

## Getting started

Expand All @@ -17,17 +17,11 @@ Now you can create hadlebars template files by putting each template in
dedicated '.jst.hjs' file (e.g.
`app/assets/javascripts/templates/some_template.jst.hjs`)

Bundle together all templates by using Sprockets. Create, for example,
`app/assets/javascripts/templates/templates.js' and add into it the
following line:

//= require_tree .

Now you can add this file in `application.js` or load it in the layout.

In Javascript code templates are available through JST variable. If you
have file `app/assets/javascripts/templates/posts/index.jst.hjs` it will
be available as JST["templates/posts/index"] function.
be available as `JST["templates/posts/index"]` function.

## Credits

Expand Down

0 comments on commit 4213c50

Please sign in to comment.