📜  jinja loop - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:17.842000             🧑  作者: Mango

代码示例4
{% if "Already" in RepoOutput[RepoName.index(repo)] %}
    {% set row_class = "good" %}
{% else %}
    {% set row_class = "error" %}
{% endif %}
 {{ RepoOutput[RepoName.index(repo)] }}