@require_template_debug<EOL>@register.simple_tag<EOL>def attributes(var):
attrs = get_attributes(var)<EOL>pprint(attrs)<EOL>return attrs<EOL>
Given a variable in the template's context, print and return the list of
attributes thare accessible inside of the template. For example, private
attributes or callables that require arguments are excluded.