Skip to content

Commit

Permalink
docs: fix error in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Aug 1, 2024
1 parent 889c833 commit 5d41a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/03-syntax-and-usage/12-script-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Pass data from the server to the client by embedding it in the HTML as a JSON ob

```templ title="input.templ"
templ body(data any) {
<button id="alerter" alert-data={ templ.JSONString(attributeData) }>Show alert</button>
<button id="alerter" alert-data={ templ.JSONString(data) }>Show alert</button>
}
```

Expand Down

0 comments on commit 5d41a6b

Please # to comment.