Last active
February 3, 2022 15:54
-
-
Save mannyanebi/0c1fd54a78c75f1f5df312f24b8c8318 to your computer and use it in GitHub Desktop.
Django Template: How to concatenate strings and django-template variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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