loop csv content in jinja2 template | Coursera Community

loop csv content in jinja2 template

  • 23 February 2021
  • 0 replies
  • 29 views

Badge +1

How to loop csv content in a jinja2 template and render the output. (for loop in the template file).

CSV file

EMP_id, First_n, Last_n

1001, Alan,Smith

1002, Joe, Willson

jinja template file,

{{% for-loop %}}

EMP_ID : {{EMP_id}}

First Name : {{First_n}}

Last Name  : {{Last_n}}


0 replies

Be the first to reply!

Reply