Django: Ticket #13620: django template revisionhttps://code.djangoproject.com/ticket/13620
<p>
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 <em>and</em> for its closing tag.
</p>
<p>
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 -- <tt> block head </tt>.
</p>
<p>
-Dan
</p>
en-usDjangohttps://www.djangoproject.com/s/img/site/hdr_logo.gifhttps://code.djangoproject.com/ticket/13620
Trac 1.0.2adamnelsonWed, 26 May 2010 19:01:25 GMTstatus changed; needs_better_patch, resolution, needs_tests, needs_docs sethttps://code.djangoproject.com/ticket/13620#comment:1
https://code.djangoproject.com/ticket/13620#comment:1
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>needs_better_patch</strong>
unset
</li>
<li><strong>resolution</strong>
set to <em>invalid</em>
</li>
<li><strong>needs_tests</strong>
unset
</li>
<li><strong>needs_docs</strong>
unset
</li>
</ul>
<p>
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:
</p>
<p>
<a class="ext-link" href="http://groups.google.com/group/django-developers"><span class="icon">​</span>http://groups.google.com/group/django-developers</a>
</p>
<p>
You may want to try <a class="wiki" href="https://code.djangoproject.com/wiki/TextMate">TextMate</a> Django bundles to make this easier on a Mac - I don't have any other suggestions though.
</p>
<p>
Cheers.
</p>
TicketjacobWed, 28 Sep 2011 16:12:27 GMTmilestone deletedhttps://code.djangoproject.com/ticket/13620#comment:2
https://code.djangoproject.com/ticket/13620#comment:2
<ul>
<li><strong>milestone</strong>
<em>1.3</em> deleted
</li>
</ul>
<p>
Milestone 1.3 deleted
</p>
Ticket