Skip to content

Instantly share code, notes, and snippets.

@benmoss
Created March 2, 2014 20:36
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 benmoss/9313406 to your computer and use it in GitHub Desktop.
Save benmoss/9313406 to your computer and use it in GitHub Desktop.
(apply dom/table #js {:className "chess-board"}
(map #(dom/tr #js {:key (:position (first %))}
(om/build-all square % options))
rows))
; rows is structured as
; ((cursor cursor) (cursor cursor))
; want one TR per partition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment