#24021: Template Variables Being Passed Through 'Using'
---------------------------------+-----------------------------
     Reporter:  clu24            |      Owner:  nobody
         Type:  Uncategorized    |     Status:  new
    Component:  Template system  |    Version:  master
     Severity:  Normal           |   Keywords:  Template, Using
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+-----------------------------
 An idea to make templates a little easier for users.

 Let's say you have a larger template that houses smaller template
 "fragments." These smaller templates have ten variables + that need to be
 defined in order for these templates to work.

 Instead of adding with for each variable, how about adding 'using' where
 you define a dictionary that holds all the variables. That was way, for
 each template you are able to just include a dictionary for templates
 inside of templates and so on.

 Example:
 Before: {% include 'example.html' with hello=something.hello
 bye=something.bye...etc. %}

 After: {% include 'example.html' using something %}

--
Ticket URL: <https://code.djangoproject.com/ticket/24021>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.4341759fcaf9bafab7784c77e208b32b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to