{% spaceless %} {% for oauth in loops.oauth %} {% if oauth.SERVICE_NAME in ['Bitly', 'Facebook', 'Google', 'Twitter'] %} {% endif %} {{ oauth.SERVICE_NAME }} {% endfor %} {% endspaceless %}