clojure-clutch / clutch

A Clojure library for Apache CouchDB.
Other
225 stars 37 forks source link

removes quote from fns arg in view-server-fns macro #79

Closed handerpeder closed 11 years ago

handerpeder commented 11 years ago

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.