Accessing array in Jinja2
Say I have two arrays field=["one", "two", "three"] value=[1, 2, 3] I want
to print out a table in Html, which has "one two three" in the first row,
and "1 2 3" in the second row. So I for loop the field array, and try to
use loop.index to access the value array. But I can not write
value.loop.index, right? So how can I get the table I want?
No comments:
Post a Comment