#13116: Specify in docs that template variables created e.g. by {%url%} are 
block-
local
----------------------------------------+-----------------------------------
 Reporter:  leif_p                      |       Owner:  nobody    
   Status:  new                         |   Milestone:            
Component:  Documentation               |     Version:  1.1       
 Keywords:  template,variables,scoping  |       Stage:  Unreviewed
Has_patch:  0                           |  
----------------------------------------+-----------------------------------
 Hi. {% url view_name as var %}  seems to create a var whose scope is the
 block where the tag was called.  This is not evident from the
 documentation, and took me a little while to figure out.

 I assume this is the behavior of any other templatetag that lets you
 create a variable.  Maybe you could add a section about scoping in the
 template system, and then have a link to it from the docs for each
 templatetag.

 I am using Django 1.1 on Google App Engine, if that makes a difference.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13116>
Django <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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to