https://github.com/elia/haml2erb
Convert Haml templates to Erb!
https://github.com/elia/haml2erb
Last synced: over 1 year ago
JSON representation
Convert Haml templates to Erb!
- Host: GitHub
- URL: https://github.com/elia/haml2erb
- Owner: elia
- License: mit
- Created: 2011-11-09T11:11:05.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-11-17T15:01:29.000Z (over 14 years ago)
- Last Synced: 2024-04-13T23:43:04.709Z (over 2 years ago)
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 15
- Watchers: 7
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# haml2erb
haml2erb is a tool for converting [Haml](http://haml-lang.com/) to Erb markup.
## Installing and loading haml2erb
haml2erb is currently distributed as a Rails plugin.
Simply move the main haml2erb directory into the vendor/plugins directory of your Rails application.
## Using haml2erb
Use the `haml2erb` command line or from Ruby call the `Haml2Erb.convert` method to have Haml markup translated into Erb.
### Example: Simple conversion
```bash
echo '.foo' | haml2erb
#
```
```ruby
Haml2Erb.convert('.foo')
# => "
\n"
```
## License
[MIT_LICENSE](/elia/haml2erb/blob/master/MIT_LICENSE)
## Credits
For the [original implementation](https://github.com/c1sgo/haml2erb):
[Chris Goddard](https://github.com/cgoddard)
[Louis Sivillo](https://github.com/BeaconInteractive)