- Issue created by @duaelfr
- 🇫🇷France pdureau Paris
Let's merge 🐛 [2.0.x] Keep patterns directory structure when converting them to components Active first
When converting patterns to components using the @ui-patterns:migrate@ Drush command, we are notified of the existence of variant templates in our pattern with a message telling that variants doesn't exist in SDC so the template has not been migrated.
Even if variant templates are not supported with SDC, that doesn't mean we cannot use variants to make variations on our markup. It's just a bit uglier because it relies on @if@ statements.
eg:
{% if variant == "my-variant" %}
markup here
{% elif variant == "my-other-variant" %}
other markup here
{% else %}
default markup here
{% endif %}
We can tune the command to output that kind of file.
Active
2.0
UI Patterns Legacy
Let's merge 🐛 [2.0.x] Keep patterns directory structure when converting them to components Active first