Replies: 1 comment
-
not a problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
say I defined my function as below
let ctx = {
print: function(msg) { console.log(msg);}
};
I'd like to call ctx.print("ok") and pass go data as the parameter.
but @templ.JSFuncCall("ctx.print", data.msg) would fail due to SafeScript() function name check
thus, I have to use script template to work around this, any idea ?
Beta Was this translation helpful? Give feedback.
All reactions