Load html examples from resources

This commit is contained in:
Michiel Borkent 2021-05-29 20:48:16 +02:00
parent fb828d9958
commit 3991b4868d
4 changed files with 66 additions and 48 deletions

View file

@ -20,10 +20,12 @@
(def namespaces
{'clojure.core
{'println (sci/copy-var println cljns)
'prn (sci/copy-var prn cljns)
'system-time (sci/copy-var system-time cljns)
'time (sci/copy-var time cljns)}})
{'println println
'prn prn
'system-time system-time
'time (sci/copy-var time cljns)}
'goog.object {'set gobject/set
'get gobject/get}})
(def ctx (atom (sci/init {:namespaces namespaces
:classes {'js js/window