Skip to content

headissue/patternengine-node-thymol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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>.