patternengine-node-thymol
v0.1.2
Published
The Thymol engine for Pattern Lab / Node
Downloads
8
Readme
The Thymol engine for Pattern Lab / Node
This engine adds Thymeleaf support to the Node edition of Pattern Lab using thymol-node.
Installing
To install the Thymol engine in your edition, npm install patternengine-node-thymol
should do the trick.
Supported features
- [x] Includes
- [x] Lineage
- [x] Hidden Patterns
- [x] Pseudo-Patterns
- [x] Pattern States
- [ ] Pattern Parameters (Accomplished instead using native Thymeleaf features)
- [ ] Style Modifiers (Accomplished instead using native Thymeleaf features)
Partial calls and lineage hunting are supported. Thymol does not support the mustache-specific syntax extensions, style modifiers and pattern parameters, because their use cases are addressed by the core Thymol feature set. Thymeleafs th:include is also not possible, use th:replace instead.
Note: You cannot use th:replace
with other attributes on a tag. th:replace
gets interpreted and string-replaced by the patternengine, even before thymol has the chance to parse it. One workaround for this is by wrapping it with a <th:block>
.