#14078: Template tag to set context variable to output from tag's rendered 
content
--------------------------------------+-------------------------------------
          Reporter:  mitar            |         Owner:  nobody
            Status:  closed           |     Milestone:        
         Component:  Template system  |       Version:  1.2   
        Resolution:  wontfix          |      Keywords:        
             Stage:  Unreviewed       |     Has_patch:  1     
        Needs_docs:  0                |   Needs_tests:  0     
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Comment (by mitar):

 I agree that view logic should not be put in the template. But designing
 HTML and injecting translation to be used in other blocks does belong to
 template language.

 Maybe it would be enough to extend `blocktrans` tag with `{% blocktrans as
 var_name with ... %}` where translated string would be put into context?
 This is in fact the problem I am trying to solve with my tag, I just
 generalized it also to other situations.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14078#comment:4>
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 [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