Skip to content

Conversation

@mattesmohr
Copy link
Member

@mattesmohr mattesmohr commented Jan 26, 2026

This pull request addresses #182 and adds support for conditional attribute extension, by giving the user the choice of a .replacing or .combining operation, while the modifier defaults to .replacing.

Division {
}
.class("lorem")
.modify(true, use: .combining) {
   $0.class("ipsum")
}

// Renders <div class="lorem ipsum">...

Data types, which cannot combined (e.g. boolean) will automatically replaced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant