Skip to content

Instantly share code, notes, and snippets.

@gthomas
Created March 13, 2012 16:36
Show Gist options
  • Save gthomas/2029799 to your computer and use it in GitHub Desktop.
Save gthomas/2029799 to your computer and use it in GitHub Desktop.
(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