Skip to content

Commit 02a3e00

Browse files
authored
docs: change data to locals
1 parent 43c47e2 commit 02a3e00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ posthtml: (webpack) => {
4646
```
4747

4848
### Component options
49-
__data__: Object containing any local variables that you want to be accessible inside the include component
49+
__locals__: Object containing any local variables that you want to be accessible inside the include component
5050

5151
<h2 align="center">Usage</h2>
5252

@@ -58,7 +58,7 @@ __index.html__
5858
<title>index.html</title>
5959
</head>
6060
<body>
61-
<include src="components/button.html" data='{
61+
<include src="components/button.html" locals='{
6262
"text": "Button"
6363
}'></include>
6464
</body>

0 commit comments

Comments
 (0)