Skip to content

adding attributes containing dashes #32

@clarkevans

Description

@clarkevans

Hello. This looks like a useful utility for those generating HTML server-side. I need to be able to create attributes that contain a dash in them, such as the following. Currently, this is super inconvenient. I'm wondering might be a good alternative?

julia> button(Dict(Symbol("hx-post")=>"/clicked",Symbol("hx-swap")=>"outerHTML"), "Click Me")
<button hx-swap="outerHTML" hx-post="/clicked">Click Me</button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions