Creating readable html with django templates
- by rileymat
When using Django for html templating how do I create good html markup formatting.
I am trying to make use of content blocks. But the content blocks show up at different levels of indentation in different templates. How do I get the content blocks to show indented like it would be if someone was to hand write the html.
I am having the same problem with newlines; I can smash all the blocks together in the template. At that point the html looks better, but the templates are unmaintainable.
I guess the question is how to you create pretty html markup with the django templating system?