lambdaisland

2017-01-04T18:39:40.000372Z

how do i access functions or vard defined in my clojure code in my clojurescript code. ex: clojure code

(def my-db-conn “some conn”)
how can i do the following? clojurescript code:
clojure.code/my-db-conn

pesterhazy 2017-01-04T20:09:00.000375Z

only through macros

pesterhazy 2017-01-04T20:09:35.000376Z

but, why would you want to access your db connection in clojurescript? That seems unwise.

2017-01-04T20:51:29.000377Z

if there is an event which i need to presist into the DB the user clicks a button, which kicks off an event that says “Save the user”. I need to save the user in the DB.

2017-01-04T20:52:32.000378Z

from cljs, i don’t know how to pass the data to clojure code to save it in a DB

2017-01-04T20:52:36.000379Z

@pesterhazy