-
Notifications
You must be signed in to change notification settings - Fork 149
Introduce <#raw> and deprecate <#Raw> #377
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
Conversation
c470b90 to
7a31ad2
Compare
lnr0626
left a comment
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.
only one of the two suggestions would need to be applied, but if we keep the defp handle_macro_body("</#raw" variant, we should also add some tests to verify the columns are correct after a closing </#raw> tag
msaraiva
left a comment
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.
@Malian great work! ❤️
It's a shame we have to handle that in the tokenizer but, unless we decide to use a different prefix for macro components, it's the only way :(
lib/surface/components/raw.ex
Outdated
| def expand(_attributes, children, meta) do | ||
| message = """ | ||
| using <#Raw> to not translate any of its contents has been deprecated and will be \ | ||
| removed in future versions. |
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.
I'd just go with:
using <#Raw> has been deprecated and will be removed in future versions.
Hint: ...
* surface-next: Remove `phx_` prefix from props (surface-ui#384) Remove code for embedded interpolation inside strings Introduce <#unless> (surface-ui#376) Introduce the concept of root properties (surface-ui#382) Warn on invalid prop/data defaults (surface-ui#374) Deprecated unquoted strings (surface-ui#379) Convert embedded interpolation (surface-ui#380) Introduce <#raw> and deprecate <#Raw> (surface-ui#377)
Related to #340