#5125: Add part about comparing values to templates documentation
---------------------------------+------------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  jacob        
     Status:  reopened           |            Component:  Documentation
    Version:  SVN                |           Resolution:               
   Keywords:                     |                Stage:  Accepted     
  Has_patch:  0                  |           Needs_docs:  1            
Needs_tests:  0                  |   Needs_better_patch:  0            
---------------------------------+------------------------------------------
Comment (by ubernostrum):

 Replying to [comment:2 anonymous]:
 > i knew that, but there is no mention of ("if value gt value") in
 templates doc.
 
 Well, the problem there is how far do we go listing possible Python
 constructs people might want to try in templates? There's literally an
 infinite number of them.
 
 If there's a documentation update, it needs to be along the lines of:
 
 The template language is intended to provide the minimal necessary set of
 features to allow you to express presentation; it is not a programming
 language, and is not the same as the Python programming language. If
 you're looking for a construct from Python -- operators, functions, method
 calls, etc. -- it probably will not be available in the template language,
 or will be implemented in a different form; for example, instead of
 Python's `if` construct there is an `{% if %}` template tag, and the
 template tag operates in a very different manner from the `if` construct
 in Python. If you don't see the feature you want listed on this page, it
 is not available by default in the template system (though you are free to
 define a custom template tag to implement it).
 
 In other words, instead of encouraging an "assume the template system does
 it unless you hear otherwise" attitude, the docs need to point out that
 the correct view is "assume the template system does '''not''' do it
 unless you hear otherwise".

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5125#comment:4>
Django Code <http://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 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to