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