Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nice syntax for custom attributes #281

Merged
merged 2 commits into from
Aug 24, 2024

Conversation

davesmith00000
Copy link
Member

Related to #273.

Took a fair bit of refactoring (which also sanitised the code quite a bit and made the imports less ambiguous), but you can now add custom attributes and properties like this (a la ScalaTags):

div(attr("custom-a") := "some value", prop("custom-b") := false)(
  ...
)

@davesmith00000 davesmith00000 self-assigned this Aug 22, 2024
@davesmith00000 davesmith00000 force-pushed the issue/273/nice-syntax-for-custom-attributes branch from ac420bb to ffb8a91 Compare August 24, 2024 11:35
@davesmith00000 davesmith00000 merged commit 3be5e74 into main Aug 24, 2024
2 checks passed
@davesmith00000 davesmith00000 deleted the issue/273/nice-syntax-for-custom-attributes branch August 24, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant