learnlytics-go/templ/generator/test-script-inline/template.templ

18 lines
352 B
Plaintext
Raw Normal View History

2025-03-20 12:35:13 +01:00
package testscriptinline
script withParameters(a string, b string, c int) {
console.log(a, b, c);
}
script withoutParameters() {
alert("hello");
}
templ InlineJavascript(a string) {
@withoutParameters()
@withParameters(a, "test", 123)
// Call once more, to ensure it's defined only once
@withoutParameters()
@withParameters(a, "test", 123)
}