I'm new to Om, but here's what I came up with.

(def app-state
    (atom
        (:attrs {1 "one" 2 "two" 3 "three" 4 "four"}
         :ids [1 2 3 3 4 2]}))

(defn number-view [[id attrs] _]
    (reify
        (om/IRender
        (render [this] (dom/li nil (get attrs id)))))

(cursor-tuples [state]
    (map vector (:ids state) (repeat (:attrs state))))

(defn numbers-view [app _]
    (reify
        om/IRender
        (render [this]
                      (dom/div nil
                                        (apply (dom/ul nil
                                                    (om/build-all number-view 
(cursor-tuples app)))))))


Apologies for any typos, typing from a mobile device.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to