I would like to know how can I set a variable with another variable in jinja. I will explain, I have got a submenu and I would like show which link is active. I tried this:
{% set active_link = {{recordtype}} -%}
where recordtype is a variable given for my template.
set
tag, rather than the specific syntax mistake made by the asker here or how to fix it, which is what the top answers here and at the linked duplicate address. – Mark Amery