vagrant/itemcatalog.py
def show_categories():
    """ Shows a list of all categories """
    # return 'Hello, World!'    <-- Basic usage

    # returning HTML websites as Python strings is not very convenient.
    # It's far better to use Flask's `render_template()` function and
    # Jinja2 templates, which are really awesome.
    # see: http://flask.pocoo.org/docs/0.12/quickstart/#rendering-templates
    return render_template('categories.html',
                           page_heading="Catalog App",
                           categories=db.get_categories())
 Shows a list of all categories 
Shows a list of all categories
Shows a list of all categories
def show_categories():
    return render_template('categories.html',
                           page_heading="Catalog App",
                           categories=db.get_categories())
def show_categories ( ) : return render_template ( 'categories.html' , page_heading = "Catalog App" , categories = db . get_categories ( ) )
Shows a list of all categories
Shows a list of all categories
""" Shows a list of all categories """ # return 'Hello, World!'    <-- Basic usage # returning HTML websites as Python strings is not very convenient. # It's far better to use Flask's `render_template()` function and # Jinja2 templates, which are really awesome. # see: http://flask.pocoo.org/docs/0.12/quickstart/#rendering-templates