-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: add option --component-prefix
#943
Conversation
@RayGuo-ergou |
Hi @shufo , just friendly pinging to see if you have a chance to review this PR. |
@RayGuo-ergou |
I would like this fix too! I just ran into this issue. |
--component-prefix
Released on https://github.com/shufo/blade-formatter/releases/tag/v1.42.0 🚀 Thanks! |
Thank you! |
Description
Add a new option
componentPrefix
for html attr format.Related Issue
closes #942 closes #944
Motivation and Context
Due to currently only prefix of
x-
orlivewire:
treat as custom component and format html attr differently, thus for new libs likeflux
which uses prefix offlux:
. The result of the format will cause a syntex error. e.g.:key="$foo - > bar"
How Has This Been Tested?
Both cli and formatter test cases added.
Screenshots (if appropriate):