Skip to content

Modifiers #52

@omrd

Description

@omrd

Would it make more sense for HTML Elements modifiers to lose the .attribute syntax?

What I mean is going from this

div {
    p { "Hello" }
        .attributes(.id("maybe-fancy"))
        .attributes(.class("fancy"), when: isFancy)
}

To this

div {
    p { "Hello" }
        .id("maybe-fancy")
        .class("fancy", when: isFancy)
}

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