clojure-clutch/clutch — pull request #79 by handerpeder (2013-05-05 17:00:19+00:00)
Title: removes quote from fns arg in view-server-fns macro

Allows fns argument to be passed by symbol, ie:

(view-server-fns :javascript {:confirmed {:map "function(doc) { emit(doc._id, doc); }"}}))

works now, but

(def my-map {:confirmed {:map "function(doc) { emit(doc._id, doc); }"}})
(view-server-fns :javascript my-map)

does not. Unquoting should not be a problem since a map evaluates to itself.