Commits

Steve Losh  committed 4939317

More shuffling.

  • Participants
  • Parent commits 4c61eb2

Comments (0)

Files changed (5)

File resources/public/css/style.less

+body {
+    background: blue;
+}

File src/typkov/templates.clj

+(ns typkov.templates
+  (:use [noir.core :only [defpartial]]
+        [hiccup.page-helpers :only [include-css html5 include-js]]))
+
+(defpartial base [title & content]
+  (html5
+    [:head
+     [:title title]
+     (include-css "/css/bootstrap.css")
+     [:link {:rel "stylesheet/less" :type "text/css" :href "/css/style.less"}]
+     (include-js "/js/less.js")]
+    [:body
+     [:div#wrapper
+      content]]))
+
+
+(defpartial home []
+  (base "Typkov"))

File src/typkov/views/common.clj

-(ns typkov.views.common
-  (:use [noir.core :only [defpartial]]
-        [hiccup.page-helpers :only [include-css html5]]))
-
-(defpartial layout [& content]
-            (html5
-              [:head
-               [:title "typkov"]
-               (include-css "/css/reset.css")]
-              [:body
-               [:div#wrapper
-                content]]))

File src/typkov/views/core.clj

+(ns typkov.views.core
+  (:require [typkov.templates :as t])
+  (:use [noir.core :only [defpage]]))
+
+
+(defpage "/" []
+  (t/home))
+

File src/typkov/views/welcome.clj

-(ns typkov.views.welcome
-  (:require [typkov.views.common :as common]
-            [noir.content.getting-started])
-  (:use [noir.core :only [defpage]]
-        [hiccup.core :only [html]]))
-
-(defpage "/welcome" []
-         (common/layout
-           [:p "Welcome to typkov"]))