Allow nit to be passed to initialize as root path

This commit is contained in:
David Botton 2021-12-05 14:18:24 -05:00
parent bb79257b07
commit 870d0c46cb

View file

@ -54,13 +54,15 @@ the same as the clog directy this overides the relative paths used in them.")
as the default route to establish web-socket connections and static
files located at STATIC-ROOT. If CLOG was already initialized and not
shut down, this function does the same as set-on-new-window (does not
change the static-root). STATIC-ROOT by default is the \"directory CLOG
change the static-root). If ON-NEW-WINDOW-HANDLER is nil no handler is
set and none is removed. STATIC-ROOT by default is the \"directory CLOG
is installed in ./static-files\" If the variable clog:*overide-static-root*
is set STATIC-ROOT will be ignored. If BOOT-FILE is nil no default
boot-file will be set for root path, i.e. /. If static-boot-js is t
then boot.js is served from the file /js/boot.js instead of the
compiled version."
(set-on-new-window on-new-window-handler :path "/" :boot-file boot-file)
(when on-new-window-handler
(set-on-new-window on-new-window-handler :path "/" :boot-file boot-file))
(unless *clog-running*
(setf *clog-running* t)
(clog-connection:initialize #'on-connect