Permalink
Browse files

Added route-default, bump to 0.5.3

  • Loading branch information...
zk committed Mar 24, 2013
1 parent bb384ca commit 44fbeb9e0f62c6d69433fb21f90914d040dc1845
Showing with 11 additions and 1 deletion.
  1. +1 −1 project.clj
  2. +10 −0 src/clj/nsfw/app.clj
View
@@ -1,4 +1,4 @@
-(defproject nsfw "0.5.2"
+(defproject nsfw "0.5.3"
:description "No Such Framework -- Experimental"
:dependencies [[org.clojure/clojure "1.4.0"]
[clj-stacktrace "0.2.5"]
View
@@ -78,6 +78,16 @@
(defmacro route [& routes]
`(moustache/app ~@routes))
+(defmacro route-default [store & routes]
+ `(moustache/app
+ (wrap-session {:store ~store})
+ wrap-file-info
+ (wrap-file "resources/public" {:allow-symlinks? true})
+ wrap-params
+ wrap-nested-params
+ wrap-keyword-params
+ ~@routes))
+
(defmacro clojurescript [& opts]
(let [{:keys [routes] :as opts} (apply hash-map opts)]
`(let [opts# ~opts

0 comments on commit 44fbeb9

Please sign in to comment.