Use filepath as argument
This commit is contained in:
parent
8852ff5428
commit
14d41a4b82
1 changed files with 4 additions and 2 deletions
|
@ -193,9 +193,11 @@ Example usage:
|
||||||
(cl-sbt/btn:btn-secondary "Secondary action"))))
|
(cl-sbt/btn:btn-secondary "Secondary action"))))
|
||||||
(footer ())))
|
(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)
|
(let ((spinneret:*html-lang* lang)
|
||||||
(spinneret:*html-style* style)
|
(spinneret:*html-style* style)
|
||||||
(spinneret:*fill-column* fc))
|
(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")))))
|
(with-html-string (page "Album")))))
|
||||||
|
|
||||||
|
; (cl-sbt/album:write-page "~/quicklisp/local-projects/cl-sbt/public/examples/album.html")
|
||||||
|
|
Loading…
Add table
Reference in a new issue