Reputation:
I need implement something like this:
{% include "pay_forms/{{ pay_gw.name }}.html" %}
, where {{ pay_gw.name }}
is tag.
How I can realize this?
Upvotes: 4
Views: 3059
Reputation: 10528
"pay_forms/"|add:pay_gw.name|add:".html"
(how to concat strings in Django templates)
Upvotes: 7