Using Om component from within Kioo

5 views
Skip to first unread message

Jacob Emcken

unread,
May 16, 2016, 5:52:37 PM5/16/16
to Enfocus
Hi.

How would it be possible to use an Om component from within Kioo?

I tried something like the following:

(defsnippet some-snippet
  ...

(defn my-component
  [cursor owner]
  (reify
    om/IRenderState
    (render [_ local-state]
      (some-snippet cursor owner local-state))))

;; tried both the following (try1 and try2)... but neither seem to work:
(deftemplate my-template "index.html"
  [cursor owner]
  {[:span.try1] (content (my-component cursor owner))
   [:span.try2] (content (om/build my-component cursor owner))})

Kind regards
Jacob

ckirkendall

unread,
May 18, 2016, 5:23:59 PM5/18/16
to Enfocus
Jacob,
Can you put together a minimal case for me.  I don't see anything wrong with what you are doing. What kioo namespace are you using?

Creighton
Reply all
Reply to author
Forward
0 new messages