Beispiel #1
0
def display_article_json(server_path):
    path = host + '/' + server_path
    article = lookup_article(path)
    return jsonify(article)
Beispiel #2
0
def display_article_html(server_path):
    path = host + '/' + server_path
    article = lookup_article(path)
    return render_template('article.html', article=article)