Permalink
Browse files

Hiccup cleanups suggested by weavejester.

  • Loading branch information...
1 parent 49841f7 commit e53597f859ef345ea480a96cbd47f82a18a4b353 @technomancy technomancy committed Dec 16, 2011
Showing with 6 additions and 8 deletions.
  1. +6 −8 src/github_percentile/core.clj
@@ -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]
@@ -36,8 +35,7 @@
(submit-button "Calculate")))
(defn layout [body]
- (html
- (doctype :html5)
+ (html5
[:head
[:meta {:charset "utf-8"}]
[:title "Github Percentile"]
@@ -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"] "."]]]))

0 comments on commit e53597f

Please sign in to comment.