You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW, where does the source for the page live? I do not see it in this repo.
Implementing a decision
A decision is a (fn [{:keys [request resource] :as context}] ...) that is expected to return a truthy value. In addition, it can also update the context - if the returned value is a map then it is merged into the context, if it is a function than the context is passed through it, if it is a vector then its second element is checked for being a map/function. Example:
This is a very good idea. I'll happily merge a patch if you mind creating a PR. The docs are in the gh-pages branch of the repository, use this branch as the target for your PR.
http://clojure-liberator.github.io/liberator/doc/decisions.html should include something like
BTW, where does the source for the page live? I do not see it in this repo.
Implementing a decision
A decision is a
(fn [{:keys [request resource] :as context}] ...)
that is expected to return a truthy value. In addition, it can also update the context - if the returned value is a map then it is merged into the context, if it is a function than the context is passed through it, if it is a vector then its second element is checked for being a map/function. Example:The text was updated successfully, but these errors were encountered: