def post(name): path = '{}'.format(name) post = pages.get_or_404(path) return render_template('post.html', post=post)
def post(name=None): path = '{}/{}'.format(POST_DIR, name) post = pages.get_or_404(path) return render_template('post.html', post=post)
def entry(path): entry = pages.get_or_404(path) return render_template('read.html', entry=entry)