Skip to content

Instantly share code, notes, and snippets.

@escherize
Created May 10, 2015 09:28
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 escherize/e1fe925e5af4eb52ce99 to your computer and use it in GitHub Desktop.
Save escherize/e1fe925e5af4eb52ce99 to your computer and use it in GitHub Desktop.
(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))])
@escherize
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment