Fork me on GitHub
#babashka
<
2023-07-17
>
timo17:07:41

Is there anything special on using macros in a pod? I have my pod ready but my test-script can not resolve the macro I wrote.

borkdude17:07:37

please give an example, how did you define the macro

timo17:07:32

so sorry for the false alarm. I found the problem just now:)

timo18:07:23

hmm :thinking_face: , it did not solve it

timo18:07:56

It is not compiling right now with this error:

Syntax error compiling at (datahike/pod.clj:217:1).
Can't take value of a macro: #'datahike.pod/with-db

timo18:07:44

probably line 218 now, though

borkdude18:07:40

A solution to this would be to define the macro as client side code with:

{"name" "with-db" "code" code-of-the-macro}

timo18:07:50

ok, I'll take a look. thanks