{% spaceless %}
{% with user.get_profile as profile %} {% if user %} {% endif %} {% endwith %}
{% endspaceless %}