8

私の名前空間は現在始まります:

(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))

ここには明らかに一定の冗長性があります。それを取り除く方法は?

4

1 に答える 1

11

試す

(:require [ring.middleware reload stacktrace params keyword-params]) 
于 2013-02-03T20:58:33.163 に答える