Creating readable html with django templates
        Posted  
        
            by 
                rileymat
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by rileymat
        
        
        
        Published on 2010-12-30T23:20:04Z
        Indexed on 
            2010/12/30
            23:53 UTC
        
        
        Read the original article
        Hit count: 219
        
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?
© Stack Overflow or respective owner