-
Notifications
You must be signed in to change notification settings - Fork 653
Deprecation: paren params
Dylan Piercey edited this page Feb 15, 2019
·
3 revisions
Macro's syntax has changed to better align with the rest of the language. Specifically it now is consistent with the new tag params
feature for providing values to body content.
Old:
<match-media({ portrait, landscape })
portrait="(orientation: portrait)"
landscape="(orientation: landscape)"
>
<!-- Render based on portrait or landscape -->
</match-media>
New:
<match-media|{ portrait, landscape }|
portrait="(orientation: portrait)"
landscape="(orientation: landscape)"
>
<!-- Render based on portrait or landscape -->
</match-media>
To automatically fix deprecated marko syntax, try the marko migrate
command from the CLI.