get_templates returns list taking into account request.is_ajax()