Skip to content

Instantly share code, notes, and snippets.

@devn
Created April 9, 2010 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devn/360845 to your computer and use it in GitHub Desktop.
Save devn/360845 to your computer and use it in GitHub Desktop.
(ns walton.layout
(:use [hiccup core page-helpers form-helpers]
walton.core))
(defn application [text body]
(html
[:html
[:head
(include-js "../../resources/public/javascript/syntaxhilighter/scripts/shCore.js"
"../../resources/public/javascript/syntaxhilighter/scripts/shBrushClojure.js")
(include-css
"../../resources/public/javascript/syntaxhilighter/styles/shCore.css"
"../../resources/public/javascript/syntaxhilighter/styles/shThemeDefault.css")
(javascript-tag "SyntaxHighlighter.all();")
[:title text]]
[:body
[:h3 text]
body]]))
(defn code-list [body]
(html
[:ul
body]))
(defn code-block [[code result]]
(html
[:li
[:pre.brush:.clojure code] [:pre.brush:.clojure ";; =&gt " result]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment