Changes between Initial Version and Version 1 of Ticket #5567
- Timestamp:
- Sep 23, 2007, 4:06:29 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5567 – Description
initial v1 3 3 It seemed like an oversight that there wasn't a "last" template filter similar to the "first" filter. I wrote it up, along with tests, and added in an nth filter that takes an arg and accessing that index of the value. 4 4 5 {{{ 5 6 >>> last([0, 1, 2, 3, 4]) 6 7 4 … … 11 12 >>> nth(u'abcd', 1) 12 13 u'b' 14 }}}