def see_all():

    posts_template = u"""
        <a href="/post/{post[id]}">{post[titulo]}</a>
    """

    # it's a kind of magic :)
    todos_os_posts = [

        posts_template.format(post=post)
        for post in posts.all()
    ]

    return base_html.format(
        title=u"Todos os posts do nosso blog",
        body=u"<br />".join(todos_os_posts)
    )
def see_posts(): 
    return jsonify(posts_table=[post for post in posts.all()])