Use filepath as argument

This commit is contained in:
Marcus Kammer 2023-07-20 08:03:47 +02:00
parent 8852ff5428
commit 14d41a4b82
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -193,9 +193,11 @@ Example usage:
(cl-sbt/btn:btn-secondary "Secondary action"))))
(footer ())))
(defun write-page (&key (lang "de") (style :tree) (fc 120))
(defun write-page (filepath &key (lang "de") (style :tree) (fc 120))
(let ((spinneret:*html-lang* lang)
(spinneret:*html-style* style)
(spinneret:*fill-column* fc))
(write-string-to-file "~/quicklisp/local-projects/cl-sbt/examples/album.html"
(write-string-to-file filepath
(with-html-string (page "Album")))))
; (cl-sbt/album:write-page "~/quicklisp/local-projects/cl-sbt/public/examples/album.html")