Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#13620 closed (invalid)

django template revision

Reported by: elkan Owned by: nobody
Component: Template system Version: dev
Severity: Keywords: template tags
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi, kinda new here. I've been studying the way we do template tags, and had a suggestion for how to revise them to make them a bit easier. I was thinking that out of the tags, I like the variable syntax the best -- {{ variable.attribute }}. I realize that if we were to use the double curly brackets on all of the tags, they might conflict with the namespace, but it seems like having "block", "if", "elsif", "else", "for", and "extends" and their respective 'end'ings as keywords would not be burdensome. It's really unpleasant typing {%%} and left arrow twice, space, the item name, and space for every tag and for its closing tag.

An alternative that wouldn't affect the namespace but would still be more convenient for both plain typing and possibly for code completion (I don't know why eclipse pydev doesn't close these tags) would be triple brackets -- block head .

-Dan

Change History (2)

comment:1 by Adam Nelson, 14 years ago

Resolution: invalid
Status: newclosed

I think it's a reasonable request but this would require a rigorous discussion on django developers newsgroup before even having a ticket and would be more like a 1.4 thing:

http://groups.google.com/group/django-developers

You may want to try TextMate Django bundles to make this easier on a Mac - I don't have any other suggestions though.

Cheers.

comment:2 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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