Hbars

screenshot of Hbars

Haml-like syntax transpiler for Ember HTMLBars templates

Overview:

The hbars is an Ember HTMLBars template that provides a Haml-like syntax for Ember applications. It aims to maintain a similar syntax to Haml while using HTMLBars helpers instead of Ruby. The goal is to preserve the logic of the template with minimal manipulation.

Features:

  • Haml-like syntax: hbars provides a syntax that closely resembles Haml, making it familiar for developers who have experience with Haml.
  • HTMLBars helpers: The template uses HTMLBars helpers to replace the Ruby code, allowing for seamless integration with Ember applications.
  • Raw text blocks: hbars supports raw text blocks with the plain filter, providing flexibility for developers to include plain text in their templates.
  • Attribute lists spanning multiple lines: The template allows for attribute lists that can span multiple lines, making it easier to organize and maintain the code.

Summary:

hbars is an Ember HTMLBars template that provides a Haml-like syntax for Ember applications. It offers features such as a familiar Haml-like syntax, HTMLBars helpers, support for raw text blocks, and attribute lists spanning multiple lines. It can be installed using the ember-cli addon ember-cli-hbars.