From fc6c2a96431bdf5ecb65d3a84d019b8098cba7ba Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Sun, 9 Mar 2025 18:59:16 +0800 Subject: [PATCH] Note about :scittle reader conditional. (#104) --- 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