Just enough fix to get this to build

Does not resolve problem of listing resources in jar
This commit is contained in:
Simon Brooke 2021-12-09 20:36:01 +00:00
parent 3567838fa8
commit a44014e82f
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
2 changed files with 5 additions and 4 deletions

View file

@ -9,8 +9,8 @@
"Implementation-Version" "unset"
}
:dependencies [[org.clojure/clojure "1.8.0"]
[mw-engine "0.1.6-SNAPSHOT"]
[mw-parser "0.1.6-SNAPSHOT"]
[mw-engine "0.1.5"]
[mw-parser "0.1.5"]
[lib-noir "0.9.9"]
[ring-server "0.5.0"]
[selmer "1.11.3" :exclusions [cheshire
@ -23,7 +23,7 @@
[markdown-clj "1.0.1"]
[environ "1.1.0"]
[noir-exception "0.2.5"]]
:main mw-ui.repl
:repl-options {:init-ns mw-ui.repl}
:plugins [[lein-ring "0.8.11"]
[lein-environ "0.5.0"]

View file

@ -37,8 +37,9 @@
(md/md-to-html-string)))
(defn list-resources [directory pattern]
(defn list-resources
"List resource files matching `pattern` in `directory`."
[directory pattern]
(let
[path (str (io/resource-path) directory)]
(session/put! :list-resources-path path)