Opened 4 years ago
Closed 4 years ago
#31875 closed Cleanup/optimization (wontfix)
Improve Documentation of Template Filters with Multiple Arguments
Reported by: | Matthew Pava | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 3.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Looking at how to write custom filters, one can guess that you can do so with multiple arguments. However, there aren't any evident examples of it. I honestly couldn't find any documentation about the syntax in the template of multiple arguments for a template filter. Are they separated by spaces? Commas? A comma and a space?
Note:
See TracTickets
for help on using tickets.
Okay, I don't know why I didn't notice the first statement in that section.
"Custom filters are Python functions that take one or two arguments:"
I apologize for wasting your time.