Application and Server¶
WDOM applications consist of a single html document and a web server.
HTML Document Object¶
Web Server¶
Web server control functions.
-
wdom.server.add_static_path(prefix, path, no_watch=False)[source]¶ Add directory to serve static files.
First argument
prefixis a URL prefix for thepath.pathmust be a directory. Ifno_watchis True, any change of the files in the path do not trigger restart if--autoreloadis enabled.Return type: None
-
wdom.server.start(**kwargs)[source]¶ Start web server.
Run until
Ctrl-cpressed, or if auto-shutdown is enabled, until when all browser windows are closed.Return type: None