We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the parser does not allow tags in attributes. Valid Twig-Code like <option {% if disabled %}disabled{% endif %}> is not possible.
<option {% if disabled %}disabled{% endif %}>
Allow valid tags in attributes.
This came up in the prettier-plugin: trivago/prettier-plugin-twig-melody#37
Is there a reason for this limitation or this is simply something that has not been implemented yet?
The text was updated successfully, but these errors were encountered:
We're currently getting hit by the same issue, it'd be great to know if there are plans to support this at some point :)
As another example, this is failing for us in our base template:
<meta name="description" content="{% block meta_description %}{% endblock %}">
Sorry, something went wrong.
Why would this cause a problem? It is most normal and most common thing in the twig files. How can twig formatter failing on this? Seriously?
No branches or pull requests
Explain the problem
Currently the parser does not allow tags in attributes. Valid Twig-Code like
<option {% if disabled %}disabled{% endif %}>
is not possible.Expected Behaviour
Allow valid tags in attributes.
This came up in the prettier-plugin: trivago/prettier-plugin-twig-melody#37
Is there a reason for this limitation or this is simply something that has not been implemented yet?
The text was updated successfully, but these errors were encountered: