RubyGems Navigation menu

haml_to_js 0.1

haml_to_js is a ruby library and command line that converts haml to javascript. Why an other haml to js converter (see similar utilities) ? * It is a extension of [haml_to_star](https://github.com/sdrdis/haml_to_star) which purpose is to convert haml into any language * This converter is intended for front usage * It simplifies debugging (the generated code is readable, a variable hold haml line number so you can know exactly where the problem is) * It support features that other don't support (don't hesitate to raise an issue if I am no longer right): * if...else statements * Declarations such as `.first{class: 'second'}` will generate `<div class="first second"></div>` * Support for brackets inside parameters (ex: `%div{key: 'value with bracket}'}`)

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.1.1 - December 27, 2012 (8.5 KB)
  2. 0.1 - December 27, 2012 (8.5 KB)

Runtime Dependencies (1):

Owners:

Authors:

  • Sébastien Drouyer

SHA 256 checksum:

decae3068c256f9afb3ce25b92ff7dc6701fb8888573f22d6ad8b8b645eff3b5

Total downloads 7,156

For this version 2,999

Licenses:

N/A

Required Ruby Version: None

Links: