class User(Document):
    email = TextField()
users = [User.load(db, uid) for uid in db]
for user in users:
    print(user.id, user.email)
from flask import render_template

@app.route('/users')
def show_users():
    return render_template('users.html', users=users)
How do I return a list as a variable in Python and use in Jinja2?