Template Filter - last
Definition and Usage
The last
filter returns the last item of
an object.
For strings, the last
filter returns the
last character:
Use the first
filter to return the first item.
Syntax
Template filters are defined by using a pipe |
character followed by the name of the filter.
{{ value|last }}