Skip to content

Instantly share code, notes, and snippets.

@bhenry
Created July 30, 2010 13:14
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 bhenry/500491 to your computer and use it in GitHub Desktop.
Save bhenry/500491 to your computer and use it in GitHub Desktop.
(defn home [req]
(let [path (get (:params req) "path-input" "")
imgs (del-copy-get-imgs path)]
(base {:pagetitle "Slideshow"
:pagename "Start"
:content (html [:p
"Enter a full path to a directory of images"
(path-form path)]
[:div.images])
:scripts [:script {:type "text/javascript"}
(str "\n var imagelist = ["
(for [img imgs]
(str "/copies/"
(.getName img)
",\n"))
"];\n")]})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment