Open may opened 1 year ago
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.)
defer
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.
If anyone else runs into this, I found a workaround:
Eg:
(setq *escape-html* :attr) ... (head "<script defer data-domain=\"example.com\" src=\"example.com\"></script>")
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 likedefer=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.