init blank project
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
(ns NoteHub.views.common
|
||||
(:use [noir.core :only [defpartial]]
|
||||
[hiccup.page-helpers :only [include-css html5]]))
|
||||
|
||||
(defpartial layout [& content]
|
||||
(html5
|
||||
[:head
|
||||
[:title "NoteHub"]
|
||||
(include-css "/css/reset.css")]
|
||||
[:body
|
||||
[:div#wrapper
|
||||
content]]))
|
||||
@@ -0,0 +1,9 @@
|
||||
(ns NoteHub.views.welcome
|
||||
(:require [NoteHub.views.common :as common]
|
||||
[noir.content.getting-started])
|
||||
(:use [noir.core :only [defpage]]
|
||||
[hiccup.core :only [html]]))
|
||||
|
||||
(defpage "/welcome" []
|
||||
(common/layout
|
||||
[:p "Welcome to NoteHub"]))
|
||||
Reference in New Issue
Block a user