{% if 'auth' in perms %}Has auth permissions{% endif %}
{% if 'auth.add_permission' in perms %}Has auth.add_permission permissions{% endif %}
{% if 'nonexistent' in perms %}nonexistent perm found{% endif %}
{% if 'auth.nonexistent' in perms %}auth.nonexistent perm found{% endif %}
