Skip to content

Instantly share code, notes, and snippets.

@mannyanebi
Last active February 3, 2022 15:54
Show Gist options
  • Save mannyanebi/0c1fd54a78c75f1f5df312f24b8c8318 to your computer and use it in GitHub Desktop.
Save mannyanebi/0c1fd54a78c75f1f5df312f24b8c8318 to your computer and use it in GitHub Desktop.
Django Template: How to concatenate strings and django-template variables
{% with "shop/"|add:shop_name|add:"/base.html" as template %}
{% include template %}
{% endwith %}
{% with "Create "|add:org_name|add:"'s Website" as website_form_name %}
{% include 'backend/snippets/form.html' with form_name=website_form_name %}
{% endwith %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment