app/main/views.py
def index():
    '''
    View root page function that returns the index page and its data
    '''
    posts = Post.query.order_by(Post.date_posted.desc()).limit(3).all()
    # quote = get_quote()

    title = 'Home - Welcome to Payonner Blogger'

    return render_template('index.html', title=title, posts=posts)

    View root page function that returns the index page and its data
    
View root page function that returns the index page and its data
View root page function that returns the index page and its data
def index():
    posts = Post.query.order_by(Post.date_posted.desc()).limit(3).all()
    title = 'Home - Welcome to Payonner Blogger'
    return render_template('index.html', title=title, posts=posts)
def index ( ) : posts = Post . query . order_by ( Post . date_posted . desc ( ) ) . limit ( 3 ) . all ( ) title = 'Home - Welcome to Payonner Blogger' return render_template ( 'index.html' , title = title , posts = posts )
View root page function that returns the index page and its data
View root page function that returns the index page and its data
'''
    View root page function that returns the index page and its data
    ''' # quote = get_quote()