how to append to a list in jinja2 with for, if and else

前端 未结 0 1975
囚心锁ツ
囚心锁ツ 2020-12-04 07:08

I have a json with a list. The list can come empty. If it has content, append the list items to a variable and if it is empty, assign a hyphen (-). I\'ll render the json int

相关标签:
回答
  • 消灭零回复
提交回复
热议问题