diff --git a/base.html b/base.html new file mode 100644 index 0000000..78d2940 --- /dev/null +++ b/base.html @@ -0,0 +1,42 @@ + + + + + + + + +

SCI script tag

+ +
+      
+<head>
+  <script src="https://borkdude.github.io/sci-script-tag/js/sci-script-tag.js" type="application/javascript"></script>
+
+  <script type="application/x-sci">
+    (defn my-alert []
+      (js/alert "You clicked!"))
+
+    ;; export function to use from JavaScript:
+    (set! (.-my_alert js/window) my-alert)
+  </script>
+
+</head>
+
+<body>
+  <button onclick="my_alert()">
+    Click me!
+  </button>
+</body>
+ + + + +