i have a jinja2 template including a section that need data from a csv file how can i read a csv file and split it into a list then iterate it in the jinja2 template? sth. like
figured a not so good method:
{% for line in csv_data.split("\n") %} {% set list = line.split(",") %} {{ list[0] }}={{ list[1] }} {% endfor %}