This engine adds Thymeleaf support to the Node edition of Pattern Lab using thymol-node.
To install the Thymol engine in your edition, npm install patternengine-node-thymol
should do the trick.
- Includes
- Lineage
- Hidden Patterns
- Pseudo-Patterns
- 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>
.