For that one I think I'd propose taking an expresion that results in a
dictionary, or a class whose properties are treated like a dictionary.
That way you could provide any number of name-value pairs which could
be rendered as name="value" attributes.
<input type="checkbox" ${isChecked ? new {checked="checked"} : null} /
>
or you could keep the checked attribute in a var
<var checked="new {checked='checked', @class='checkedstyle'}" />
<input type="checkbox" ${isChecked ? checked : null} />
And of course there's always the potential to support an expression
that results in a string to simply be rendered.
Thoughts?