<s> from flask import render_template <EOL> from app import app , pages <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def home ( ) : <EOL> posts = [ page for page in pages if '<STR_LIT:date>' in page . meta ] <EOL> sorted_posts = sorted ( posts , reverse = True , <EOL> key = lambda page : page . meta [ '<STR_LIT:date>' ] ) <EOL> return render_template ( '<STR_LIT>' , pages = sorted_posts ) <EOL> @ app . route ( '<STR_LIT>' ) <EOL> def page ( path ) : <EOL> page = pages . get_or_404 ( path ) <EOL> return render_template ( '<STR_LIT>' , page = page ) </s>
