Skip to content

code0100fun/hbars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hbars

Try it now

###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.

Documentation

Install

npm install --save-dev hbars

Ember-cli addon

ember-cli-hbars

npm install --save-dev ember-cli-hbars

Contributing

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 install

Build

npm run build

Test

Testem auto running tests:

npm test

To run all tests once:

./bin/test

or 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=haml

About

Haml-like syntax transpiler for Ember HTMLBars templates

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •