Beispiel #1
0
def page_render(page_id):
    page = content_api.get_page(page_id)
    if page is None:
        abort(404)
    return render_template('page.html', page=page)
Beispiel #2
0
def page_edit(page_id):
    page = content_api.get_page(page_id, check_drafts=True)
    if page is None:
        abort(404)
    return render_template('page.html', page=page)