old_contents: import cherrypy
  import logging
  from jinja2 import Environment, FileSystemLoader
  env = Environment(loader=FileSystemLoader('templates'))
  
  
  class Views(object):
  
      @cherrypy.expose
      def index(self):
          tmpl = env.get_template('main.html')
          return tmpl.render()
          # return tmpl.render(salutation='Hello', target='World')
  
new_contents: import cherrypy
  import logging
  from jinja2 import Environment, FileSystemLoader
  from auth import require, AuthController
  
  env = Environment(loader=FileSystemLoader('templates'))
  
  
  class Views(object):
  
      auth = AuthController()
  
      @cherrypy.expose
      @require()
      def index(self):
          tmpl = env.get_template('main.html')
          return tmpl.render()
  
subject: Add authentication to the main page.