Creating readable html with django templates
The readability of HTML doesn't matter.  In a system like Django or Rails, HTML is an output format, not a source format.  When people edit HTML by hand, they are right to be concerned about indentation and spacing, because it is a source format, and someone will have to edit it in the future.  But the output of templates is just that: output.  The browser doesn't care about the indentation.  At this point the only people who read the HTML are people looking at View - Source.
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?
I am surprised by the answers so far. I find that nicely formatted HTML aids in writing the corresponding CSS and JavaScript. As well as making it easier to add content later on.