Skip to content

Commit

Permalink
use fs/file
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Dec 12, 2023
1 parent b6e3130 commit 146fd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/builder.clj
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
(let [out-html (fs/file out-path path "index.html")]
(fs/create-dirs (fs/parent out-html))
(when client-side-routing?
(spit (str (fs/path out-path (str (or (not-empty path) "index") ".edn")))
(spit (fs/file out-path (str (or (not-empty path) "index") ".edn"))
(viewer/->edn doc)))
(spit out-html (view/->html (-> static-app-opts
(assoc :path->doc (hash-map path doc) :current-path path)
Expand Down

0 comments on commit 146fd56

Please sign in to comment.