страница https://hpc.name/thread/d510/75581/reshenie-problem-s-verstkoy-v-jinja2-pri-ispolzovanii-ciklov-v-flask.html