Skip to content

bleathem/patternlab-plugin-handlebars-helper-listitems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pattern Lab Node Plugin - Handlebars Helper Listitems

This is a patternlab node plugin providing a handlebars implementation of the patternlab listitems iterator.

#Installation: npm install --save plugin-node-handlebars-helper-listitems

Make sure the plugin is enabled in your patternlab-config.json file:

"plugins": {
  "plugin-node-handlebars-helper-listitems": {
    "enabled": true
  }
}

#Usage: Use the size parameter to control the number of listitems used in the iteration:

<ul>
{{#listitems size="4"}}
    <li> {{ title }} </li>
{{/listitems}}
</ul>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published