#25051 closed Cleanup/optimization (fixed)
now template tag documentation
| Reported by: | Mark Tranchant | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The documentation here says:
You can also use the syntax
{% now "Y" as current_year %}to store the output inside a variable.
I think it'd be worth clarifying that current_year will then be a string not an integer. I spent a while working out why {% if current_year > 2015 %} was returning True.
Note:
See TracTickets
for help on using tickets.
Good idea, thanks.