wjlroe

welcome.clj

Aug 10th, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (ns testroutes.views.welcome
  2.   (:require [testroutes.views.common :as common]
  3.             [noir.content.pages :as pages])
  4.   (:use noir.core
  5.         hiccup.core
  6.         hiccup.page-helpers))
  7.  
  8. (defpage "/welcome" []
  9.          (common/layout
  10.            [:p "Welcome to testroutes"]))
  11.  
  12. (defpage "/resources/new" []
  13.   (common/layout
  14.    [:p "this is the new thing"]))
  15.  
  16. (defpage "/resources/:resid" {:keys [journal]}
  17.   (common/layout
  18.    [:p "whereas this is a specific resource"]))
Advertisement
Add Comment
Please, Sign In to add comment