The following example creates a DETAILS HTML tag with a dynamic open parameter. … If the field open-val is empty the open parameter is removed, otherwise open is set to the value. (which imo is a bit ugly)
\whitespace trim
<$genesis $type="details" $names="open" $values={{!!open-val}}>
<summary>summary text</summary>
some text.
</$genesis>
@jeremyruston … Would it be possible to create the “open” parameter without a value, or should we treat it as a feature?
I think most of the HTML attributes, that ignore their value don’t care if they have a value. …