code: def set_folder(self, folder):
          
          self.folder = folder
          self.templates.directories[0] = folder
          self.app.root_path = folder
docs: Sets the folder where the files to serve are located.