def get(self): #============================================================================== # game_scripts = [] # game_path = os.path.join(os.path.dirname(__file__), "src") # # game_path = os.path.dirname(__file__) # for folder in game_folders: # joined_path = os.path.join(game_path, folder) # files = os.listdir(joined_path) # for f in files: # if f.endswith("js"): # game_scripts.append(os.path.join( folder, f )) #============================================================================== self.response.out.write(render_template("base.html", scripts=game_files, canvas=game_canvas))
def get(self): # Game canvas page title = "Aelik: Fleet Runner" self.response.out.write(render_template("base.html", title=title, scripts=game_files, canvas=game_canvas))