def generate_index(): """ Generate index page """ with open(os.path.join(_deploy_dir, 'index.html'), 'w', encoding='utf-8') as f: f.write(handler.index())
def index(): return handler.index()