Skip to content
Newer
Older
100644 20 lines (12 sloc) 503 Bytes
d125f98 @arjan doc: Another big batch of filter docs
arjan authored
1 .. highlight:: django
b11a84e @kaos doc: rearranged ref docs to include the meta doc.
kaos authored
2 .. include:: meta-last.rst
34f54cc @kaos Added documentation stubs.
kaos authored
3
d125f98 @arjan doc: Another big batch of filter docs
arjan authored
4 Returns the last character or element.
5
6 Returns the last element of the value. When the value is a list then
7 the last element of the list is returned, when the value is a binary
8 then the last `byte` of the binary is returned.
9
10 For example::
11
12 {{ value|last }}
13
14 When value is the list ``hello`` then the output will be ``o``.
15
16 **Note:** This function is not safe to use with multibyte character
17 values, use with care.
18
19 .. seealso:: :ref:`filter-first`
Something went wrong with that request. Please try again.