Exemple #1
0
def edit_entry(id):
    _entry = Entry.get(id)

    post_title = _entry['title']
    post_content = _entry['content']
    slug = _entry['slug']
    status = _entry['status']

    return render_template('edit.html', **locals())
Exemple #2
0
def show_entry(id):
    entry = Entry.get(id)
    entry['content'] = markdown(entry['content'])

    return render_template('entry.html', **locals())