-
Notifications
You must be signed in to change notification settings - Fork 649
Deprecation: partial dynamic tag
Dylan Piercey edited this page Aug 8, 2019
·
2 revisions
Using a partial dynamic tag (<partial-${dynamic}>
) has been deprecated to prefer the regular dynamic tag with string concatenation. There where limited use cases for this alternative shorthand, and it was previously not documented.
Here’s what it looks like to move from the partial dynamic tag syntax, to a regular dynamic tag:
<h${input.size} class="my-class" foo="bar">
My nested content
</>
The preferred syntax to achieve this:
<${"h" + input.size} class="my-class" foo="bar">
My nested content
</>
To automatically fix deprecated marko syntax, try the marko migrate
command from the CLI.