I want to use a similar role in the python django template elif
Examples of direct look
{% if record.type == 0 %}
用例层
{% elif record.type == 1%}
接口层
{% elif record.type == 2%}
模块层
{% elif record.type == 3%}
项目层
{% endif %}
See renderings