parameters: ()
return_statement: return f"{html_prefix}{html_interior}{html_suffix}"
docstring: The main listing page, renders a simple redirect page including where
      the server cache lives for development.  This endpoint (``/``) is not
      required by the drake server-client relationship and only serves to aid
      development.
docstring_summary: The main listing page, renders a simple redirect page including where
      the server cache lives for development.  This endpoint (``/``) is not
      required by the drake server-client relationship and only serves to aid
      development.
docstring_tokens: The main listing page renders a simple redirect page including where the server cache lives for development . This endpoint ( / ) is not required by the drake server - client relationship and only serves to aid development .
function: def root():
      """The main listing page, renders a simple redirect page including where
      the server cache lives for development.  This endpoint (``/``) is not
      required by the drake server-client relationship and only serves to aid
      development.
      """
      html_prefix = dedent(
          f"""\
          <!doctype html>
          <html>
            <body>
              <h1>Drake Render Server</h1>
              <hr>
              <p>
                <a href="{RENDER_ENDPOINT}">Render</a> a scene.
              </p>
          """
      )
      html_suffix = dedent(
          """\
            </body>
          </html>
          """
      )
      # Inform the developer of where the server cache lives in development mode.
      if app.config["ENV"].lower() == "development":
          indent = "  " * 2
          html_interior = (
              f"{indent}<h1>Server Cache</h1>\n"
              f"{indent}<hr>\n"
              f"{indent}<p>\n"
              f"{indent}  This is a development server.  The server cache\n"
              f"{indent}  lives here: <tt>{str(SERVER_CACHE)}</tt>\n"
              f"{indent}</p>\n"
          )
      else:
          html_interior = ""
  
      return f"{html_prefix}{html_interior}{html_suffix}"
function_tokens: def root ( ) : html_prefix = dedent ( f"""\
          <!doctype html>
          <html>
            <body>
              <h1>Drake Render Server</h1>
              <hr>
              <p>
                <a href="{RENDER_ENDPOINT}">Render</a> a scene.
              </p>
          """ ) html_suffix = dedent ( """\
            </body>
          </html>
          """ ) # Inform the developer of where the server cache lives in development mode. if app . config [ "ENV" ] . lower ( ) == "development" : indent = "  " * 2 html_interior = ( f"{indent}<h1>Server Cache</h1>\n" f"{indent}<hr>\n" f"{indent}<p>\n" f"{indent}  This is a development server.  The server cache\n" f"{indent}  lives here: <tt>{str(SERVER_CACHE)}</tt>\n" f"{indent}</p>\n" ) else : html_interior = "" return f"{html_prefix}{html_interior}{html_suffix}"