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)
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)