old_contents: # builtin
  import glob
  # external
  import flask
  # local
  from lib import utils, view_handlers
  
  
  # start app and set configuration
  app = flask.Flask(__name__, static_folder='static', static_url_path='/static', )
  cache = utils.setup(app)
  
  # Views! i.e. what the user gets when they type in our url
  
  
  @app.route('/sales')
  # @cache.cached(timeout=84600, unless=app.config['DEBUG'])
  def sales():
      return flask.render_template('sales.html', table=view_handlers.get_and_populate_shoot_table())
  
  
  @app.route('/profile/<worker_key>')
  # @cache.cached(timeout=84600, unless=app.config['DEBUG'])
  def profile(worker_key):
      return flask.render_template('profile.html', worker=view_handlers.get_user_profile_info(worker_key))
  
  
  @app.route('/')
  def index ():
      return flask.render_template('index.html')
  
  
  @app.route('/example')
  def example_route():
      return flask.render_template('partials/base.html',
          content='''
  # Example Page
  
  You can create an entire new page be adding content inline here!
  
  You probably shouldn't, but you can.
  
  Syntax is markdown, and the lack of column alignment is on purpose
      ''')
  
  
  @app.errorhandler(404)
  def page_not_found(e):
      return flask.render_template('partials/base.html',
          content='# Error 404\nPage not found'), 404
  
  
  @app.errorhandler(500)
  def server_error(e):
      return flask.render_template('partials/base.html',
          content='# Error 500\nServer error'), 500
  
  
  if __name__ == '__main__':
      app.run(port = app.config.get("PORT", 5000))
  
new_contents: # builtin
  import glob
  # external
  import flask
  # local
  from lib import utils, view_handlers
  
  
  ############################################################
  # setup
  ############################################################
  
  
  app = flask.Flask(__name__, static_folder='static', static_url_path='/static', )
  cache = utils.setup(app)
  
  
  ############################################################
  # views
  ############################################################
  
  
  @app.route('/')
  def index():
      return flask.render_template('index.html')
  
  
  @app.route('/contact')
  def contact():
      return flask.render_template('contact.html')
  
  
  @app.route('/profile/<worker_key>')
  def profile(worker_key):
      return flask.render_template('profile.html', worker=view_handlers.get_user_profile_info(worker_key))
  
  
  # @app.route('/sales')
  # def sales():
  #     return flask.render_template('sales.html', table=view_handlers.get_and_populate_shoot_table())
  
  
  ############################################################
  # error pages
  ############################################################
  
  
  @app.errorhandler(404)
  def page_not_found(e):
      return flask.render_template('partials/base.html',
          content='# Error 404\nPage not found'), 404
  
  
  @app.errorhandler(500)
  def server_error(e):
      return flask.render_template('partials/base.html',
          content='# Error 500\nServer error'), 500
  
  
  ############################################################
  # dev mode startup
  ############################################################
  
  
  if __name__ == '__main__':
      app.run(port = app.config.get("PORT", 5000))
  
subject: reorganize frontend routes, add contact route