{% with "popup/"|add:instance.popup_template as template_name %} {% include template_name %} {% endwith %}