Skip to content

Instantly share code, notes, and snippets.

@devn
Created December 12, 2009 21:40
Show Gist options
  • Save devn/255087 to your computer and use it in GitHub Desktop.
Save devn/255087 to your computer and use it in GitHub Desktop.
(ns cljex.view
[:use compojure])
(defn api-entry
[doc-path]
(html-tree
[:h2 [:a {:href doc-path}]]))
;; (defn example-entry
;; [example-entry])
(defn html-doc
[title index body]
(html
(doctype "xhtml/transitional")
[:html
[:head [:title title] [:meta {:name }]
(include-css "../../src/public/css/global.css"
"../../src/public/css/pygments.css")]
[:frameset {:cols "175px,*"}
[:frame {:name "index"}
[:html [:head [:title "index"]]
[:body index]]]
[:frame {:name "examples"}
[:html [:head [:title "examples"]]
[:body body]]]]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment