Allow (context) to be used with a symbol as the path #51

Closed
sjl opened this Issue Mar 12, 2012 · 0 comments

Projects

None yet

2 participants

@sjl
sjl commented Mar 12, 2012

This doesn't work:

(def foo "/foo")

(defroutes test
  (context foo [] ...))

But inlining the string does:

(defroutes test
  (context "/foo" [] ...))

It would be helpful to be able to define these at runtime to allow for more "pluggable" apps written as middleware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment