def post_date_single(key): item = get_post_by_date(key, g.db_file) if item == {}: abort(404) return render_template("single_item.html", item=item)
def post_date_pretty(key): item = get_post_by_date(key, g.db_file) if item == {}: abort(404) return render_template("index.html", items=[item])
def post_date(key): item = get_post_by_date(key, g.db_file) if item == {}: abort(404) return Response(dumps(item), mimetype="application/json")