We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f67789 commit 2c522f1Copy full SHA for 2c522f1
1 file changed
README.md
@@ -55,14 +55,16 @@ __index.html__
55
<title>index.html</title>
56
</head>
57
<body>
58
- <include src="components/button.html"></include>
+ <include src="components/button.html" data='{
59
+ "text": "Button"
60
+ }'></include>
61
</body>
62
</html>
63
```
64
65
__components/button.html__
66
```html
-<button class="button"><div class="button__text">Button</div></button>
67
+<button class="button"><div class="button__text">{{ text }}</div></button>
68
69
70
```js
@@ -85,7 +87,7 @@ posthtml([ include({ encoding: 'utf8' }) ])
85
87
86
88
89
<button class="button">
- <div class="button__text">Text</div>
90
+ <div class="button__text">Button</div>
91
</button>
92
93
0 commit comments