Opened 17 years ago
Closed 17 years ago
#5850 closed (worksforme)
Can't use filters inside tags in templates
Reported by: | italomaia | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | filters tags | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Something like the folowing code should work : {% url project.app.views.my_page page_number|add:1 %} .
It seems like filters can not be used inside tags, what looks odd to me, as filters are some kind of
simple helpers.
Note:
See TracTickets
for help on using tickets.
This works for me. You might want to read up on how to use the
{% url %}
tag: http://www.djangoproject.com/documentation/templates/#url. To ensure you are using the rest of it correctly. Re-open only if you can provide exact reasoning and examples to support it.