text: from flask import Flask, render_template, request
  import logging
  from controllers.get_quote import get_quote
  from controllers.get_example import get_example
  import datetime
  
  app = Flask(__name__)
  
  # configure Flask using environment variables
  app.config.from_pyfile("config.py")
  
  
  if datetime.datetime.now().month >= 8:
      footer_year = f"{datetime.datetime.now().year} (yes, still)"
  else:
      footer_year = datetime.datetime.now().year
  
  footer = f"from a developer with no creativity to another @ {footer_year}"
  
  
  @app.route('/')
  def index():
      return render_template('index.html', page_title="lorem ipsum",
          footer=footer, header_title="the lorem ipsum project")
  
  
  @app.route('/playa')
  def playa():
      return render_template('playa.html', page_title="been there",
          footer=footer, header_title="been there.")
  
  
  @app.route('/lorem_ipsum')
  def lorem_ipsum():
      return render_template('lorem_ipsum.html', page_title="lorem ipsum",
          footer=footer, header_title="")
  
  
  @app.route('/data_types')
  def data_types():
      return render_template('data_types.html', page_title="your data types examples",
          footer=footer, header_title="writing documentation?")
  
  
  @app.route('/quote', methods=['POST'])
  def quote():
  
      user_submitted_keyword = request.form.get('keyword')
      quote = get_quote(user_submitted_keyword)
  
      if request.method == 'POST':
          logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s',
                              datefmt='%d-%b-%y %H:%M:%S',
                              filename='logs.log',
                              level=logging.DEBUG)
          logging.info(f'Info: user entry "{user_submitted_keyword}" keyword')
  
          return render_template('quote.html', page_title="your quote", quote=quote, keyword=user_submitted_keyword,
                                  footer=footer, header_title="")
  
  
  
  @app.route('/example_data_type', methods=['POST'])
  def example():
  
      user_submitted_datatype = request.form.get('datatype')
      example_data = get_example(user_submitted_datatype)
  
      if request.method == 'POST':
          logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s',
                              datefmt='%d-%b-%y %H:%M:%S',
                              filename='logs.log',
                              level=logging.DEBUG)
          logging.info(f'Info: user entry "{user_submitted_datatype}" data type')
  
          return render_template('example_data_type.html', page_title="your example", example_data=example_data, datatype=user_submitted_datatype,
          footer=footer, header_title="")
  
  
  
  
  if __name__ == "__main__":
      app.run(host="localhost", port=8080, debug=True)
  