Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 1.12 KB

html-hbs.md

File metadata and controls

63 lines (51 loc) · 1.12 KB

HTML-bars/Handle-bars

Table of Contents

  1. Quotes
  2. Properties [ Alignment ]
  3. Comments

Quotes

Double or single quotes

  • Flexible, use what's comfortable
  • DO NOT go back to change code to fit your styling

Bad N/A

Good

{{ash-plugin
    message="this is the message"
}}

or

{{ash-plugin
    message='this is the message'
}}

Properties

2.1: Alignment

Line properties vertically

Bad

{{ash-plugin message="this is the message" isNew=true list=[1,4,5,8] foo=(action 'bar')}}

Good

{{ash-plugin
    message="this is the message"
    isNew=true
    list=[1,4,5,8]
    foo=(action 'bar')
}}

Comments

  • Only acceptable comment structure is curly brackets with exclaimation point after the opening curly baracket.

Bad

<!-- this is NOT an appropriate handlebars comment -->

Good

{{! this IS and appropriate handlebars comment }}