weavejester / compojure

A concise routing library for Ring/Clojure
Eclipse Public License 1.0
4.09k stars 256 forks source link

Add support for multimethods as render functions #147

Closed gsnewmark closed 8 years ago

gsnewmark commented 8 years ago

Currently it's not possible to use multimethods as render fns because clojure.lang.MultiFn doesn't implement clojure.lang.Fn:

java.lang.IllegalArgumentException: No implementation of method: :render of protocol: 
#'compojure.response/Renderable found for class: clojure.lang.MultiFn
weavejester commented 8 years ago

This seems reasonable. Thanks for the patch!