package testscriptusage script withParameters(a string, b string, c int) { console.log(a, b, c); } script withoutParameters() { alert("hello"); } script onClick() { alert("clicked"); } templ Button(text string) { } script withComment() { //' } script whenButtonIsClicked(event templ.JSExpression) { console.log(event.target) } templ ThreeButtons() { @Button("A") @Button("B") @Conditional(true) @ScriptOnLoad() } script conditionalScript() { alert("conditional"); } templ Conditional(show bool) { } script alertTest() { alert('testing'); } templ ScriptOnLoad() { }