Advertisement
Guest User

Untitled

a guest
Oct 16th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;have
  2. (def app (app-handler
  3.            [home-routes
  4.             base-routes]
  5.         ...))
  6.  
  7. (defn get-handler []
  8.   (-> #'app
  9.       (wrap-file "resources")
  10.       (wrap-file-info)))
  11.  
  12.  
  13.  
  14. ;want
  15. (def app (app-handler
  16.            [(home-routes param1 param2) ;pass params to route
  17.             base-routes]
  18.         ...))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement