Skip to content

Commit 4ce1482

Browse files
committed
Add documentation about including pseudo-patterns
1 parent 978db28 commit 4ce1482

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ Advanced syntax with support for passing variables and disabling access to the d
5353
In both examples the value of `key` will replaced with the rendered pattern.
5454

5555

56+
#### Include pseudo-pattern files
57+
58+
It is also possible to include [pseudo-patterns](http://patternlab.io/docs/pattern-pseudo-patterns.html) using the shorthand partials syntax, by replacing the tilde (~) with a dash (-). So for example the pseudo-pattern `shila-card.html~variant.json` can be included like so:
59+
60+
```json
61+
{
62+
"key": "molecules-shila-card.html-variant"
63+
}
64+
```
65+
66+
5667
#### Join text values
5768

5869
```json

0 commit comments

Comments
 (0)