Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Oct 28, 2024
1 parent b2d72f5 commit f468c1b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/browser-repl/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var squint_core = await import('squint-cljs/core.js');
globalThis.user = globalThis.user || {};
globalThis.myapp = globalThis.myapp || {};
globalThis.myapp.foobar = function () {
return 4;
};
export const foobar = myapp.foobar;
7 changes: 7 additions & 0 deletions examples/browser-repl/js/myapp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var squint_core = await import('squint-cljs/core.js');
globalThis.user = globalThis.user || {};
globalThis.myapp = globalThis.myapp || {};
globalThis.myapp.foobar = function () {
return 5;
};
export const foobar = myapp.foobar;
4 changes: 4 additions & 0 deletions examples/browser-repl/src/myapp.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns myapp)

(defn foobar []
5)

0 comments on commit f468c1b

Please sign in to comment.