Skip to content

Commit

Permalink
Hiccup cleanups suggested by weavejester.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Dec 16, 2011
1 parent 49841f7 commit e53597f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/github_percentile/core.clj
Expand Up @@ -3,8 +3,7 @@
[compojure.route :only [resources]]
[ring.adapter.jetty :only [run-jetty]]
[ring.middleware.params :only [wrap-params]]
[hiccup.core :only [html]]
[hiccup.page-helpers :only [doctype include-css]]
[hiccup.page-helpers :only [html5 doctype include-css]]
[hiccup.form-helpers :only [form-to label text-field submit-button]])
(:require [clojure.java.io :as io]
[clojure.string :as s]
Expand Down Expand Up @@ -36,8 +35,7 @@
(submit-button "Calculate")))

(defn layout [body]
(html
(doctype :html5)
(html5
[:head
[:meta {:charset "utf-8"}]
[:title "Github Percentile"]
Expand All @@ -46,11 +44,11 @@
"/stylesheets/skeleton.css")
(include-css "http://fonts.googleapis.com/css?family=Electrolize")]
[:body
[:div {:id "header"}
[:h1 {:class "container"}
[:div#header
[:h1.container
[:a {:href "/"} "Github Percentile"]]]
[:div {:id "content" :class "container"} body]
[:div {:id "footer" :class "container"}
[:div#content.container body]
[:div#footer.container
[:p "Get " [:a {:href "https://github.com/amalloy/github-percentile"}
"the source"] "."]]]))

Expand Down

0 comments on commit e53597f

Please sign in to comment.