Replies: 1 comment
-
Hey! I think the best bet here would be to use the spread attribute feature. Your function can return the type <button class="circle" { InlineOnClick("/logout")... }>A</button> https://templ.guide/syntax-and-usage/attributes#spread-attributes |
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
-
Would there be a way to make something like
<button class="circle" @inlineJSCallbackOnClick>A</button>
work?Most straightforward thing I can think of is just enabling this for a fuction that returns a safe string, something like
Beta Was this translation helpful? Give feedback.
All reactions