1 2 3 4 5 6 7 | from django import template
register = template.Library()
@register.filter
def get_at_index(list, index):
return list[index]
|
More like this
- Template tag to create a list from one or more variables and/or literals by davidchambers 2 years, 8 months ago
- Yet another SQL debugging facility by miracle2k 5 years, 9 months ago
- Template filter that divides a list into exact columns by davmuz 1 year, 4 months ago
- Tags & filters for rendering search results by exogen 5 years, 2 months ago
- Templatetag startswith + message tuned by io_error 4 years, 11 months ago
Comments