weavejester / lein-ring

Ring plugin for Leiningen
Eclipse Public License 1.0
501 stars 100 forks source link

Pass servlet context to init/destroy #148

Open MichaelBlume opened 9 years ago

MichaelBlume commented 9 years ago

As attempted in #93

Open questions: what should context look like? Ideally we'd pull it apart into a nice clojure map.

What do we pass in when we're not running in a servlet container? Nil?

Should this be implemented in ring-server too? Ideally a ring project should work the same way regardless of how it's run.