Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Dcode-Evo/handlebars-helper-list2td

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Handlebars helper {{list}}

Creates a table with bullets ul like

  • @param: bullet: {String} provides the bullet symbol (Default: •) or provide image path to use image as bullet
  • @param: bulletAlt: {String} provides the alt attribute value if image is used as bullet
  • @param: class: {String} add a specific class to the built table (optional)
  • @param: type: {String} set type of the list ul/ol (Default: ul).Type ol will put numbers for each item

@usage

{{#list class="my-classy-list" bullet=">"}}
- item 1 <strong>html is OK</strong>
- item 2 <img src="path-to/the-image.png">
{{/list}}
{{#list class="my-classy-list" bullet="my-bullet-image.png" bulletAlt="-" type="ol"}}
- item 1 <strong>html is OK</strong>
- item 2 <img src="path-to/the-image.png">
{{/list}}

Each line starting with '-' will be transformed into the list item

NOTE no spaces allowed before the item starting -

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published