<filename>app/main/views.py<gh_stars>0
# from flask import render_template, request, Blueprint
# from  app.models import Post

# main = Blueprint('main', __name__)


# @app.route("/")
# @app.route("/home")
# def home():
#     page = request.args.get('page', 1, type=int)
#     posts = Post.query.order_by(Post.date_posted.desc()).paginate(page=page, per_page=5)
#     return render_template('home.html', posts=posts, title='Home')


# @app.route("/about")
# def about():
#     return render_template('about.html', title='About')

<filename>app/main/views.py<gh_stars>0
# from flask import render_template, request, Blueprint
# from  app.models import Post

# main = Blueprint('main', __name__)


# @app.route("/")
# @app.route("/home")
# def home():
#     page = request.args.get('page', 1, type=int)
#     posts = Post.query.order_by(Post.date_posted.desc()).paginate(page=page, per_page=5)
#     return render_template('home.html', posts=posts, title='Home')


# @app.route("/about")
# def about():
#     return render_template('about.html', title='About')

# from flask import render_template, request, Blueprint # from  app.models import Post # main = Blueprint('main', __name__) # @app.route("/") # @app.route("/home") # def home(): #     page = request.args.get('page', 1, type=int) #     posts = Post.query.order_by(Post.date_posted.desc()).paginate(page=page, per_page=5) #     return render_template('home.html', posts=posts, title='Home') # @app.route("/about") # def about(): #     return render_template('about.html', title='About')