user1456308
user1456308

Reputation:

Nested django template tags

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

Answers (1)

Vidul
Vidul

Reputation: 10528

"pay_forms/"|add:pay_gw.name|add:".html"

(how to concat strings in Django templates)

Upvotes: 7

Related Questions