Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ns picture-gallery.views.layout
- (:require [hiccup.page :refer [html5 include-css]]
- [hiccup.element :refer [link-to]]
- [noir.session :as session]))
- (defn base [& content]
- (html5
- [:head
- [:title "Welcome to picture-gallery"]
- (include-css "/css/screen.css")]
- [:body content]))
- (defn common [& content]
- (base
- (if-let [user (session/get :user)]
- [:p user] (link-to "/register" "register"))
- content))
Advertisement
Add Comment
Please, Sign In to add comment