Skip to content

Is there a way to include boolean values in a tag? #11

@may

Description

@may

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions