diff --git a/resources/public/index.html b/resources/public/index.html index 8006450..6c78ab2 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -147,6 +147,19 @@ addition to scittle.js, you need to include scittle.pprint.js. + +

Target :scittle in cljc

+ You can target scittle in .cljc files (use a script tag to include the cljc file) with the :scittle reader conditional like this:
+ +

+    #?(:scittle
+       (js/console.log "In scittle")
+       :org.babashka/nbb
+       (js/console.log "In nbb")
+       :cljs
+       (js/console.log "In cljs"))
+    
+

REPL