Fork me on GitHub
#hoplon
<
2017-04-03
>
zlrth00:04:46

what does :rpc/pre mean? I found it here for example:

(defrpc update-user [user-data]
  {:rpc/pre [(update-record! user-data)]}
  (fetch-record (:db/id user-data)))
from: https://github.com/hoplon/demos/blob/master/castra-datomic-free-state/src/castra/demo/api/user.clj

zlrth00:04:12

googled around and couldn’t find anything.

wasserspiegel15:04:48

check out the castra source (https://github.com/hoplon/castra/blob/master/img/arch-full.png, core.clj and middleware.clj)

wasserspiegel16:04:41

I have a question myself - I understand I can't nest if-tpl directly inside loop-tpl, but is there a reason the following should not work? '(tpl-loop ... (div ... (if-tpl ...'