Skip to content

Instantly share code, notes, and snippets.

@remleduff
Created May 4, 2010 02:23
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 remleduff/388872 to your computer and use it in GitHub Desktop.
Save remleduff/388872 to your computer and use it in GitHub Desktop.
(defmulti url (fn [key &_] key))
(defmethod url :username [_ user] (str "/" user))
(defmethod url :home [_ _] "/")
(defmethod url :item [_ item] (str "/media/" item))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment