def show_all_attrs(value):
    res = []
for k in dir(value):
    res.append('%r %r\n' % (k, getattr(value, k)))
return '\n'.join(res)
env = Environment()
env.filters['show_all_attrs'] = show_all_attrs
tmpl = env.from_string('{{v|show_all_attrs}}')


class Myobj(object):
    a = 1
Display all jinja object attributes