@viewer.view('show_page')
def show_page(slug, **kwargs):
    p_filter = Page.slug == slug
    query = pages_base().filter(p_filter)
    # No result means the page doesn't exist
    if query.count() < 1:
        abort(404)
    page = query.first()
    return viewer.render('page.html', page=page[0])
Render a Page
dataset/ETHPy150Open jkossen/imposter/frontend.py/show_page