flute
flute copied to clipboard
Is there a way to include boolean values in a tag?
For example, if I want to produce the following output:
<script defer data-domain="example.com" src="example.com/script.js"></script>
@ailisp How do I include the defer
boolean? (HTML treats it as a boolean; if it exists it's true, else false. You can't assign it a value like defer=true
.)
The closest I've come is this, but I haven't found a way to include defer
:
(script :data-domain "example.com" :src "example.com/script.js")
Thanks so much for making a great library! Hopefully I just am not figuring this out and it's a quick fix that isn't in the documentation.