clog/templates/projects/clog-panel/tmpl.lisp.lt
2022-08-16 23:00:40 -04:00

20 lines
638 B
Text
Vendored

(defpackage #:<%= (@ sys-name) %>
(:use #:cl #:clog #:clog-web)
(:export start-app))
(in-package :<%= (@ sys-name) %>)
(defun on-new-window (body)
;; Add the clog-web look and feel
(clog-web-initialize body)
;; Use the panel-box-layout to center horizontally
;; and vertically our div on the screen.
(let* ((layout (create-panel-box-layout body)))
(center-children (center-panel layout))
(create-main-panel (center-panel layout))))
(defun start-app ()
(initialize 'on-new-window
:static-root (merge-pathnames "./www/"
(asdf:system-source-directory :<%= (@ sys-name) %>)))
(open-browser))