diff --git a/source/clog-system.lisp b/source/clog-system.lisp index a9d5b55..39b0fa8 100644 --- a/source/clog-system.lisp +++ b/source/clog-system.lisp @@ -94,11 +94,11 @@ example." (defun set-on-new-window (on-new-window-handler &key (path "/") (boot-file "/boot.html")) - "Set or change the on-new-window handler or set a new one for PATH -using BOOT_FILE. Paths should always begin with a '/'. If PATH is set to -\"default\" will use boot-file when the route can not be determined, ie -a static html file including boot.js that has not been added with this -function. If BOOT-FILE is nil path is removed." + "Set or change the ON-NEW-WINDOW-HANDLER for PATH using +BOOT_FILE. Paths should always begin with a forward slash '/'. If PATH +is set to \"default\" any path without another route and there is no +static file matching the requested path ON-NEW-WINDOW-HANDLER and +BOOT-FILE will be used. If BOOT-FILE is nil path is removed." (clog-connection:set-clog-path path boot-file) (if boot-file (setf (gethash path *url-to-on-new-window*) on-new-window-handler) diff --git a/static-files/tutorial/some-file.html b/static-files/tutorial/some-file.html new file mode 100644 index 0000000..80b0d70 --- /dev/null +++ b/static-files/tutorial/some-file.html @@ -0,0 +1,10 @@ + +
+ + + + +I am just a regular file but I include boot.js. I am in the static-root + of the tutorial and demo apps.
+ + diff --git a/tutorial/12-tutorial.lisp b/tutorial/12-tutorial.lisp index 9db40c7..2a8cc2a 100644 --- a/tutorial/12-tutorial.lisp +++ b/tutorial/12-tutorial.lisp @@ -38,6 +38,7 @@