# patternengine-node-handlebars-extended

> The Extended Handlebars engine for Pattern Lab / Node

Latest version **1.0.0** (published 2019-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install patternengine-node-handlebars-extended
pnpm add patternengine-node-handlebars-extended
yarn add patternengine-node-handlebars-extended
bun add patternengine-node-handlebars-extended
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-29 |
| First published | 2019-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0 |
| Dependencies | 3 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brian Muenzenmeyer & Geoffrey Pursell & Josef Engelfrost |
| Maintainers | engelfrost |
| Keywords | Pattern Lab, Atomic Web Design, Node, Grunt, Gulp, Javascript, Handlebars |

## Links

- npm: https://www.npmjs.com/package/patternengine-node-handlebars-extended
- Repository: https://github.com/engelfrost/patternengine-node-handlebars-extended
- Homepage: https://github.com/engelfrost/patternengine-node-handlebars-extended#readme
- Issues: https://github.com/engelfrost/patternlab-node/issues
- npm.io page: https://npm.io/package/patternengine-node-handlebars-extended

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) ^7.1.3
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [handlebars](https://npm.io/package/handlebars.md) ^4.0.5

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-01-29

## README

# The Extended Handlebars engine for Pattern Lab 2 / Node

To install the Handlebars engine in your edition, `npm install patternengine-node-handlebars-extended` should do the trick.

By adding `patternlab-handlebars-config.js` to your project root you may extend the Handlebars instance:

```js
module.exports = function (Handlebars) {
  /*
  Register a Helper called `list` which lets you pass values between patterns:

  Examples:
  {{>partialName class=(list classNames)}}
  {{>partialName class=(list 'closs-one class-two')}}
  {{>partialName class=(list 'closs-one' 'class-two')}}
  */
  Handlebars.registerHelper('list', (...args) => {
    args.pop(); // pop options
    const a = [];
    return a.concat.apply(a, args);
  });
};
```

## Supported features
- [x] [Includes](http://patternlab.io/docs/pattern-including.html)
- [x] Lineage
- [x] [Hidden Patterns](http://patternlab.io/docs/pattern-hiding.html)
- [x] [Pseudo-Patterns](http://patternlab.io/docs/pattern-pseudo-patterns.html)
- [x] [Pattern States](http://patternlab.io/docs/pattern-states.html)
- [ ] [Pattern Parameters](http://patternlab.io/docs/pattern-parameters.html) (Accomplished instead using [native Handlebars partial arguments](http://handlebarsjs.com/partials.html))
- [ ] [Style Modifiers](http://patternlab.io/docs/pattern-stylemodifier.html) (Accomplished instead using [native Handlebars partial arguments](http://handlebarsjs.com/partials.html))

---
_Source: https://npm.io/package/patternengine-node-handlebars-extended · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
