Created
May 10, 2015 09:28
-
-
Save escherize/e1fe925e5af4eb52ce99 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
(defn table [m] | |
[:table | |
(map (fn [k v] | |
[:tr {:key (pr-str k)} | |
[:td {:style {:border "1px green dotted"}} (str k)] | |
[:td {:style {:border "1px blue dotted"}} | |
(if (map? v) (table v) (pr-str v))]]) | |
(keys m) | |
(vals m))]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://i.imgur.com/2hXLMRM.png