Created
December 12, 2009 21:40
-
-
Save devn/255087 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 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