How can I conditionally add an attribute with Riot.js?
Suppose I have the following:
<progress max="10" value="{progressValue}"></progress>
This sets the value attribute to whatever progressValue is. However, there may be cases where I don't want to add this attribute at all. Specifically in this example, if I want the progress element to have an indeterminate state, I need to remove the value attribute entirely.
I know that for some attributes (such as disabled), there is special handling. Is it configurable somehow?