This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Replies: 1 comment 4 replies
-
Ok, I got it to work with: generator_opts = {
command = "djhtml",
args = { "-i", "$FILENAME" },
to_temp_file = true,
from_temp_file = true,
} But I think the above example should've also work, if someome can explain why it did not it would be helpful. What happens here is that the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tried to add djhtml as a formatting source locally first, but I haven't succeeded and now I'm kind of stuck so I need some help. This tool does not accept
stdin
, so I have to useto_temp_file
.I got this
When I ran formatting on a file with
htmldjango
filetype, it did nothing.However if I change
to_temp_file
forto_stdin
, it does format, but because it formats just the file in disk, does not format the unsaved changes, so that's not good.I try some debugging and saw that it was spawning a command
djhtml /tmp/null-lsasdasdsa.html
, so I ran that command manually to check if it was something fromdjhtml
's part, but the output was as expected.If someone wants to try you can use this html file and set the filetype manually to
htmldjango
.Correct output should be
Beta Was this translation helpful? Give feedback.
All reactions