You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this is a similar problem to #110, I would like to repeat the comment that I made there:
Unfortunately, I have to conclude (#103 (comment)) that supporting a {# fmt: #} tag is hard without running into inconsistencies in the InsideHTMLTag mode. It's the most complicated (read "hacky") mode in DjHTML, but I like the way it currently performs and I don't want to change it.
It is feasible to implement {# fmt:mode #} inside all modes except that one, though. However, it would not be consistent (read "fair") to support {# fmt:mode #} in some places and not in others, so I'd rather not support it at all. After all, there already exists {# fmt:off #} and {# fmt:on #} as an "escape hatch" for all cases that DjHTML doesn't support.
However, if someone manages to get it to work (including test coverage), I'll of course be happy to merge the PR!
I have a shell html template that other templates extend from.
In the shell template I have this:
That way, I don't have to include the script tag in every template that extends from the shell.
However, when I run djhtml over those files, the javascript code is not properly indented:
It is properly indented if I add surrounding script tags:
How could we fix/workaround this? Can the script tag not be mandatory to properly indent js?
The text was updated successfully, but these errors were encountered: