Permalink
Browse files

fix filter usage in load-views-ns, move to the latest ring

Signed-off-by: Chris Granger <ibdknox@gmail.com>
  • Loading branch information...
1 parent 3133daa commit a5b39424c50dcfa95c701bc02c5a063d71e8310b @ibdknox ibdknox committed Oct 13, 2011
Showing with 5 additions and 4 deletions.
  1. +2 −2 project.clj
  2. +3 −2 src/noir/server.clj
View
@@ -1,10 +1,10 @@
-(defproject noir "1.2.0"
+(defproject noir "1.2.1-SNAPSHOT"
:description "Noir - a clojure web framework"
:dependencies [[org.clojure/clojure "[1.2.1],[1.3.0]"]
[compojure "0.6.5"]
[org.clojure/tools.namespace "0.1.0"]
[clj-json "0.4.3"]
- [ring "0.3.11"]
+ [ring "1.0.0-beta2"]
[cssgen "0.2.4"]
[hiccup "0.3.6"]
[clj-stacktrace "0.2.3"]
View
@@ -29,8 +29,9 @@
are loaded by the server."
[& ns-syms]
(doseq [ns-sym ns-syms
- n (filter #(re-seq (re-pattern (name ns-sym)) (name %))
- (find-namespaces-on-classpath))]
+ n (find-namespaces-on-classpath)
+ :let [pattern (re-pattern (name ns-sym))]
+ :when (re-seq pattern (name n))]
(require n)))
(defn add-middleware

0 comments on commit a5b3942

Please sign in to comment.