#648: [patch] Add a comment tag like {# commented #}
-----------------------------+----------------------------------------------
 Reporter:  hegemon          |        Owner:  adrian 
     Type:  defect           |       Status:  closed 
 Priority:  normal           |    Milestone:         
Component:  Template system  |      Version:         
 Severity:  minor            |   Resolution:  wontfix
 Keywords:                   |  
-----------------------------+----------------------------------------------
Changes (by Hawkeye):

  * summary:  Add a comment tag like {# commented #} => [patch] Add a
              comment tag like {# commented #}

Comment:

 I think that this is a valuable proposal...
 
 It will make code much more readable, and will encourage the use of
 comments...
 
 {{{
 {% if somecondition %}
 foo
 {% else %}{% comment %}not somecondition{% endcomment %}
 bar
 {% endif %}
 }}}
 is not readable, and I don't think it seems Django-ish... it's inelegant.
 
 {{{
 {% if somecondition %}
 foo
 {% else %} {# not somecondition #}
 bar
 {% endif %}
 }}}
 is much more readable
 
 
 I'm uploading a patch for consideration.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/648>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to