Skip to content

Commit 7fd206a

Browse files
committed
docs: attrs as param, issue #99
1 parent c3915bd commit 7fd206a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,19 @@ You have full control over the delimiters used for injecting locals, as well as
5353
You can inject locals into any piece of content in your html templates, other than overwriting tag names. For example, if you passed the following config to the expressions plugin:
5454

5555
```js
56-
locals: { className: 'intro', name: 'Marlo' }
56+
locals: { className: 'intro', name: 'Marlo', 'status': 'checked' }
5757
```
5858

5959
```html
6060
<div class="{{ className }}">
61+
<input type="radio" {{ status }}>
6162
My name is {{ name }}
6263
</div>
6364
```
6465

6566
```html
6667
<div class="intro">
68+
<input type="radio" checked="">
6769
My name is Marlo
6870
</div>
6971
```

0 commit comments

Comments
 (0)