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
prefix
is a URL prefix for thepath
.path
must be a directory. Ifno_watch
is True, any change of the files in the path do not trigger restart if--autoreload
is enabled.Return type: None
-
wdom.server.
start
(**kwargs)[source]¶ Start web server.
Run until
Ctrl-c
pressed, or if auto-shutdown is enabled, until when all browser windows are closed.Return type: None