Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion image-dump-example/src/app/persist.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
[glimmer.core :as ui]
[jolt.image :as jimg]))

(def image-path "todos.jimg")
(def image-path
;; Resolve against the PROJECT directory, not the process cwd. The dev
;; launcher (jolt/bin/jolt) cd's to the jolt checkout so the runtime's
;; relative loads work and passes the original directory as JOLT_PWD; a bare
;; "todos.jimg" would land in the jolt repo there. The release binary runs
;; without the cd and without JOLT_PWD, so "." is already the project dir.
(str (or (System/getenv "JOLT_PWD") ".") "/todos.jimg"))

(defn reactive-cell? [x]
(and (map? x) (contains? x :glimmer/kind)))
Expand Down