Opened 14 years ago
Closed 14 years ago
#15232 closed (duplicate)
pass parameters to include template tag
Reported by: | keropotter | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.2 |
Severity: | Keywords: | include parameters | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I haven't been able to find a way to pass parameters to include template tag... is there any way i can do it?
I have a multi combo selector, and i need to put 2 of them in a web page (origin and destiny). In other languages there is the concept of "component" so you can give it an ID to change the rendering names.
How could i accomplish this in django without braking the DRY principle?
Thanks
Note:
See TracTickets
for help on using tickets.
Described feature is implemented in Django 1.3 by ticket #7817. Also see the docs
PS. Trac is not a support forum, so it's not the right place for asking questions like "How could i accomplish ...". For usage questions please use django-users mailing list.