I'm new for flask and HTML. I want an application that each time I click a button, the web can request data from the dataset in flask. For example, there is a dataset in flask like
[{'col0': 0,'col1': 0,'col2': 0},{'col0': 1,'col1': 1,'col2': 1},{'col0': 2,'col1': 2,'col2': 2},{'col0': 3,'col1': 3,'col2': 3}]
I want to make a button such that every time I click the button, the web can extract two dicts in the dataset and append them in the table in HTML. What should I do? Sorry I don't have codes now because I don't where to start. Thanks.