Simple question. I have a list in my template and want to output the length of the list. Do I have to calculate this in my view and hand it over via my context?
Use list|length. | indicates that you will use a filter. The size of the list is
list|length
|
{{ list|length }}