Created
April 9, 2010 02:53
-
-
Save devn/360845 to your computer and use it in GitHub Desktop.
This file contains 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 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 ";; => " result]])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment