Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clarify some details in README
  • Loading branch information
adambeynon committed Jan 8, 2014
1 parent 5102fae commit b36d83a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
@@ -1,6 +1,19 @@
# opal-haml
# opal-haml: Haml templates for opal

Haml templates for opal
This gem adds `.haml` files to sprockets to precompile templates for opal. This
gem does not make the haml compiler available under opal, just the result of
pre-compiling a haml template.

A small runtime is included to handle dynamic attributes, as well as allowing
content to be rendered.

All haml templates become available under the `Template` constant in Opal,
which allows a template to be easily rendered in a context:

```ruby
Template['user'].render(my_user)
# => <div>..</div>
```

## Usage

Expand Down

0 comments on commit b36d83a

Please sign in to comment.