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
djlint is not treating cache as block tag:
cache
<body> {% block top_navbar %} {% cache 600 %} {% endcache %} {% endblock top_navbar %} </body>
Would be reformated by djlint blenderhub/templates/base.html --reformat --profile=django to:
djlint blenderhub/templates/base.html --reformat --profile=django
The {% cache %} is official Django block tag: https://docs.djangoproject.com/en/5.0/topics/cache/
{% cache %}
See above. With settings custom_blocks="cache" the reformat works as expected.j
custom_blocks="cache"
[tool.djlint] profile="django" # custom_blocks="cache"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System Info
Issue
djlint is not treating
cache
as block tag:Would be reformated by
djlint blenderhub/templates/base.html --reformat --profile=django
to:The
{% cache %}
is official Django block tag: https://docs.djangoproject.com/en/5.0/topics/cache/How To Reproduce
See above. With settings
custom_blocks="cache"
the reformat works as expected.jContents of .djlintrc/pyproject.toml [tool.djlint]
The text was updated successfully, but these errors were encountered: