-
Notifications
You must be signed in to change notification settings - Fork 9
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
Custom attribute syntax #8
Comments
@vldm This is related to this issue if not actually the same, but would it be possible to support something like |
@yuuma03 hi, yes, currently it is not in master. But i am experiment with it locally. I have pushed branch https://github.com/rs-tml/rstml/tree/add-fn-pattern so you can check it I haven't created pr, or merged it yet, because need some feedback about idea. Maybe it violate some html/xml parser rule, that i am currently don't know. I also wasnt sure about design:
But you still can try this branch, i already use it in my pet project, and if idea would be accepted, i can add more tests and merge it as is. |
This task and spread syntax looks similar. I don't think it would be possible at this point to support parens/brackets inside attribute names, since that would already be conflicting with binding syntax. But for other puncts, it would be useful to have a set of name "modifiers", each of which would represent a punctuation and flag that will represent a position in the name. My propose is to implement a structure that will accumulate all punkts, and use it as prefix and postfix fields in |
Original issue from: stoically#50
The text was updated successfully, but these errors were encountered: