How to build up a HTML table with a simple for loop in Jinja2?
Just pass items to template.render as a keyword argument – it should be a list (really any iterable will do) of items. If you need sub-items use a class or a dictionary. In the simplest case, you can use a dictionary: items = [] for i in range(1, 11): i = str(i) # dict == … Read more