Fork me on GitHub
#hoplon
<
2017-04-04
>
thedavidmeister05:04:35

@wasserspiegel (for-tpl ... (div ... (if-tpl ... should work fine

alandipert12:04:23

@mf rpc/pre is a function that's run before the castra function, if the caller was remote

alandipert12:04:43

that's the place to check that the user is logged in etc

alandipert12:04:35

example: (defn show-something [] {:rpc/pre [(get-in @*session* [:user]]} ...)

ejemba19:04:06

hi o/ I'm new in hoplon world in the demo 'castra-simple', I'm wondering across all the demo files at runtime which are client-side and which are server-side

ejemba19:04:20

index.cljs.hl is client side ok. but for {api,handler,rpc}.clj does all of them are on the server ?

ejemba19:04:45

I don't understand how in index.cljs.hl the (rpc/init) call is done since .