Skip to content

Commit

Permalink
SCI import test
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 9, 2024
1 parent 73c6a50 commit 199acbd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions notebooks/sci_import_test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(ns sci-import-test
(:require [nextjournal.clerk :as clerk]
[clojure.core :as b]))

(clerk/with-viewer
{:render-fn
'(fn [_]
(nextjournal.clerk.render/render-promise
(->
(js/import "https:/esm.sh/[email protected]/index.mjs")
(.then
(fn [lib]
(nextjournal.clerk/html
[:pre (lib.formatRelative (lib.subDays (js/Date.) 2) (js/Date.))]))))))}
nil)
2 changes: 1 addition & 1 deletion render/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
binaryage/devtools {:mvn/version "1.0.3"}
cider/cider-nrepl {:mvn/version "0.28.3"}
org.babashka/sci {:git/url "https://github.com/babashka/sci"
:git/sha "c556f4474303c61da72e7a07eef496dcbf66a56e"}
:git/sha "1e15f0f6a129ef7512351efc65f7475209d8cc4c"}
org.clojure/clojurescript {:mvn/version "1.11.132"}
io.github.babashka/sci.nrepl {:mvn/version "0.0.2"}
reagent/reagent {:mvn/version "1.2.0"}
Expand Down

0 comments on commit 199acbd

Please sign in to comment.