does anybody know how to add boolean attributes
like autofocus
to scala templates?
Example: autofocus
:
<input autofocus />
For now I use:
'autofocus -> "autofocus"
This prints:
<input type="text" autofocus="autofocus" />
And how to add custom data-attributes? Thanks!