Skip to content

Commit

Permalink
docs: add missing namespace
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Davidson <[email protected]>
  • Loading branch information
a-h and joerdav authored Jan 6, 2025
1 parent f8f1781 commit 3eb1340
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 @@ -55,7 +55,7 @@ HTML element `on*` attributes pass an event object to the function. To pass the
event.preventDefault();
}
</script>
<button onclick={ templ.JSFuncCall("clickHandler", JSExpression("event"), "message from Go") }>Show event</button>
<button onclick={ templ.JSFuncCall("clickHandler", templ.JSExpression("event"), "message from Go") }>Show event</button>
```

The output would be:
Expand Down

0 comments on commit 3eb1340

Please sign in to comment.