Opened 14 years ago

Last modified 8 months ago

#14831 closed

Django Template Style Guide — at Initial Version

Reported by: Simon Meers Owned by: nobody
Component: Documentation Version: 1.2
Severity: Normal Keywords: template, style, format
Cc: Tobias Kunze, Ryan Cheley Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top