As far as I can see, there is no way to test if an object is a List instance in Jinja2.
List
Is that correct and has anyone implemented a custom test/extensio
You can easily do this whit a custom filter in jinja2.
First create you test method:
def is_list(value): return isinstance(value, list)
And add it as an custom filter:
j = jinja2.Jinja2(app) j.environment.filters.update({ 'is_list': is_list, })