Created
March 13, 2012 16:36
-
-
Save gthomas/2029799 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns shouter.views.layout | |
(:use [hiccup.core :only [html]] | |
[hiccup.page-helpers :only [doctype include-css]])) | |
(defn common [title & body] | |
(html | |
(doctype :html5) | |
[:head | |
[:meta {:charset "utf-8"}] | |
[:meta {:http-equiv "X-UA-Compatible" :content "IE=edge,chrome=1"}] | |
[:meta {:name "viewport" :content "width=device-width, initial-scale=1, maximum-scale=1"}] | |
[:title title] | |
(include-css "/stylesheets/base.css" | |
"/stylesheets/skeleton.css" | |
"/stylesheets/screen.css") | |
(include-css "http://fonts.googleapis.com/css?family=Sigmar+One&v1")] | |
[:body | |
[:div {:id "header"} | |
[:h1 {:class "container"} "SHOUTER"]] | |
[:div {:id "content" :class "container"} body]])) | |
(defn four-oh-four [] | |
(common "Page Not Found" | |
[:div {:id "four-oh-four"} | |
"The page you requested could not be found"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment