#14831: Django Template Style Guide -------------------------------------+------------------------------------- Reporter: Simon Meers | Owner: Ryan | Cheley Type: New feature | Status: assigned Component: Documentation | Version: 1.2 Severity: Normal | Resolution: Keywords: template, style, | Triage Stage: Accepted format | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Description changed by Baptiste Mispelon:
Old 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 New 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 https://docs.djangoproject.com/en/dev/internals/contributing/writing-code /coding-style/#template-style -- -- Ticket URL: <https://code.djangoproject.com/ticket/14831#comment:19> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018dfbc22acf-e52103a7-b203-47b5-9fce-0111b63a8abc-000000%40eu-central-1.amazonses.com.