The Twig engine for Pattern Lab / Node
To install the Twig engine in your edition,
npm install patternengine-node-twig should do the trick.
This engine is considered experimental. Please try it out and let us know if you run into any problems. We know that some of the more interesting features of Twig are missing or improperly dealt with, but it should basically work.
- Hidden Patterns
- Pattern States
- Pattern Parameters (Accomplished instead using native Twig include arguments)
- Style Modifiers (Accomplished instead using native Twig include arguments)
Level of Support is more or less full. Partial calls and lineage hunting are supported. Twig does not support the mustache-specific syntax extensions, style modifiers and pattern parameters, because their use cases are addressed by the core Twig feature set.