Django Template Style Guide
|Reported by:||Simon Meers||Owned by:||nobody|
|Severity:||Normal||Keywords:||template, style, format|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It would be nice to have a standard template style that should be followed. For example, I like to indent my Django templates by two additional spaces every time I enter a new HTML or template block. The Django core templates vary greatly in regards to style and indentation. Much of the time template readability is sacrificed in favour of attempting to preserve the "appearance" of the generated HTML code.
Regardless of what is decided, it would be great to have at least some guidelines for templates added to http://docs.djangoproject.com/en/dev/internals/contributing/#coding-style