From 604090d13405e451ad146541cda097d8a4669dc4 Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Sun, 9 Mar 2025 15:06:18 +0800 Subject: [PATCH] Note about :scittle reader conditional. --- resources/public/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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