I have a few Django templates where I need precise control of whitespace and newlines. It can be done, but the template is all mushed together and not very readable: https://t.co/iEmf8qTgKv 2 atbildes
Pēteris Caune (2021-12-09 14:52:20) |
I have a few Django templates where I need precise control of whitespace and newlines. It can be done, but the template is all mushed together and not very readable: https://t.co/iEmf8qTgKv | ||
Pēteris Caune (2021-12-09 14:54:15) |
I played around with template tags, and came up with a few tags ({% linemode %}...{% endlinemode %} and {% line %}...{% endline %})that let me use nicer formatting: https://t.co/OM4KCjkSZy | ||
Pēteris Caune (2021-12-09 14:56:20) |
Experimental implementation here. Now just need to decide if this is a good or a crazy idea ;-) https://t.co/VHEL64crOc |