Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#13620 closed (invalid)

django template revision

Reported by: elkan Owned by: nobody
Component: Template system Version: master
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


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 .


Change History (2)

comment:1 Changed 9 years ago by Adam Nelson

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:

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


comment:2 Changed 7 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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