Skip to content

Conversation

@Malian
Copy link
Collaborator

@Malian Malian commented May 7, 2021

Related to #340

@Malian Malian requested a review from msaraiva May 7, 2021 11:21
@Malian Malian force-pushed the introduce-raw-macro branch from c470b90 to 7a31ad2 Compare May 7, 2021 11:25
@Malian Malian requested review from lnr0626 and miguel-s May 7, 2021 11:27
Copy link
Collaborator

@lnr0626 lnr0626 left a 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

Copy link
Member

@msaraiva msaraiva left a 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 :(

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.
Copy link
Member

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: ...

@Malian Malian merged commit f3a6d22 into surface-ui:surface-next May 8, 2021
lnr0626 added a commit to lnr0626/surface that referenced this pull request May 11, 2021
* 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)
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.

3 participants