@app.route('/<path:page_path>')
def get_index_page(page_path):
    "\n    Handle requests which urls don't end with '.html' (for example, '/doc/')\n\n    We don't need any generator here, because such urls are equivalent to the same urls\n    with 'index.html' at the end.\n\n    :param page_path: str\n    :return: str\n    "
    if (not page_path.endswith('/')):
        page_path += '/'
    return process_page((page_path + 'index'))
Handle requests which urls don't end with '.html' (for example, '/doc/')

We don't need any generator here, because such urls are equivalent to the same urls
with 'index.html' at the end.

:param page_path: str
:return: str
@app.route('/<path:page_path>')
def get_index_page(page_path):
    "\n    Handle requests which urls don't end with '.html' (for example, '/doc/')\n\n    We don't need any generator here, because such urls are equivalent to the same urls\n    with 'index.html' at the end.\n\n    :param page_path: str\n    :return: str\n    "
    if (not page_path.endswith('/')):
        page_path += '/'
    return process_page((page_path + 'index'))