Perms in templates