如何在clojure中需要许多子命名空间?

时间:2013-02-03 20:53:51

标签: clojure

我的命名空间目前开始:

(ns web.site
  (:require ring.adapter.jetty)

  (:require ring.middleware.reload)
  (:require ring.middleware.stacktrace)
  (:require ring.middleware.params)
  (:require ring.middleware.keyword-params)
  (:require ring.middleware.nested-params)
  (:require ring.middleware.multipart-params )
  (:require ring.middleware.cookies)
  (:require ring.middleware.session)
  (:require ring.middleware.session.cookie)
  (:require ring.middleware.flash)
  (:require ring.middleware.resource)
  (:require ring.middleware.file-info))

这里显然有一定的冗余。如何删除它?

1 个答案:

答案 0 :(得分:8)

尝试

(:require [ring.middleware reload stacktrace params keyword-params])