hbars v0.1.7
hbars
###Haml-like syntax for Ember HTMLBars templates.
The goal is to keep the syntax as close to Haml as possible given the Ruby is replaced by HTMLBars helpers. The logic should pass through to HTMLBars with as little manipulation as possible also.
Install
npm install --save-dev hbarsEmber-cli addon
npm install --save-dev ember-cli-hbarsContributing
Pull requests welcome!
There are many features in Haml that I would like to have available in hbars.
- raw text blocks with
plain:filter - raw text lines with leading
/ - attribute lists spanning multiple lines
- HTML doctypes
- data attributes sub-hash
Dependencies
bower install
npm installBuild
npm run buildTest
Testem auto running tests:
npm testTo run all tests once:
./bin/testor to grep a specific set of tests:
./bin/test 'compiler'Vim
Haml syntax highlighting works well for hbars. Add this to your .vimrc to automatically highlight *.hbars files:
au BufNewFile,BufRead *.hbars set filetype=haml10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago