How do I render a sqlalchemy column into a html file with flask?

Solution
@app.route('/titles')
def postsection():
    posts = Blog.query.all()
    return render_template('titles.html', posts=posts)



    
    
    titles


{% for post in posts %}
{{post.title}}
{% endfor %}