Commits

Miki Tebeka  committed e63f1e6

Start of css (and static files)

  • Participants
  • Parent commits 37293b8

Comments (0)

Files changed (3)

   :description "FIXME: write"
   :dependencies [[org.clojure/clojure "1.2.0"]
                  [org.clojure/clojure-contrib "1.2.0"]
-                 [compojure "0.4.0"]
+                 [compojure "0.4.1"]
                  [congomongo "0.1.3-SNAPSHOT"]
                  [hiccup "0.2.6"]
                  [ring/ring "0.2.5"]])

File src/vodo.clj

   (:use compojure.core
         hiccup.core
         hiccup.form-helpers
+        hiccup.page-helpers
         somnium.congomongo
         ring.util.response
         ring.adapter.jetty)
   [& content]
   (html
     [:head
+     (include-css "/static/vodo.css")
      [:title "VODO - Voice TODO"]]
     [:body 
      [:h1 "VODO - Voice TODO"]
           (redirect (list-url user))))
   (GET "/memos/:user/list" [user] (memos-page user))
   (POST "/twillo/sms" {params :params} (twillo params))
+  (route/files "/static" {:root "static"})
   (route/not-found "Page not found"))
 
 (defn main []

File static/vodo.css

+body {
+    border: 5px solid blue;
+    margin: 20px;
+    padding: 10px;
+}