Is there a way to bind a ractive variable to a radio button without showing the curly brackets in the HTML? The simplest method is to use
<input type="radio" name="{{myVar}}" value="1" checked>
but I want it to output as
<input type="radio" name="myVar" value="1" checked>
without changing form handling. I attempted to use logic like this:
<input type="radio" name="myVar" value="1" {{#myVar==1}}checked{{/myVar==1}}
but it didn't work.
Additionally, is there a way to bind it as a numeric value instead of a string? For example, with data:
data:{myVar:1}
the radio button remains unchecked.