Open rob101 opened 11 months ago
Thanks for opening your first issue here!
Possibly a regression of https://github.com/Riverside-Healthcare/djLint/issues/756
I have same problem. using it in twig.
This is also {{ block('content_artists', input) ?? '' }}
reformatted as {{ block('content_artists', <built-in function input>) ?? '' }}
System Info
Issue
In Django, it's common to pass
object
as a context var. If theobject
is used in{% set %}
djlint will treat it as javascript, creating a breaking change:This should be untouched:
Instead this occurs:
How To Reproduce
Run the formatter on any html file containing
{% set card_title_1 = object %}