-
Notifications
You must be signed in to change notification settings - Fork 161
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
Added node! convenience macro #265
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Just two nitpicks.
9c2785a
to
e921d9a
Compare
Applied suggested changes! |
The diff has some commits that are not supposed to be there. If you don't mind, I can fix this and I'll get this merged |
4a85da4
to
d1b4eb4
Compare
I removed all commits that weren't supposed to be there. It was the 0.6.1 release that I pulled in. If there's still something that isn't supposed to be there, go right ahead! |
Sorry for the run-around but it seems like my suggested changes got undone. |
No worries! Let me know what you would like me to do in this case. |
This macro works well for cases where we need access to underlying
GenericNode
operations, such as.event()
,.add_attribute()
,.remove_attribute
that cannot currently be performed inside of thetemplate!
macro, yet retain the ergonomics for setting attributes and children that don't need the extra flexibility. Please see thedoc example
below for a possible use case.This is also a good workaround for #264.