concatinate string with jinja variable

Viewed 55

i'm trying to sand some data from one html to another with "include ... with" like that:

{% include 'Discret/buttons/modal.html' with type="teacher" id=teacher.id %}

how can i concatinate "teacher" and teacher.id in one string? i've tried to do it with tilda~

{% include 'Discret/buttons/modal.html' with type="teacher"~teacher.id %}

and with plus+

{% include 'Discret/buttons/modal.html' with type="teacher"+teacher.id %}

and with convert function

{% include 'Discret/buttons/modal.html' with type="teacher"+teacher.id|string %}

but nothing works.

0 Answers
Related