Simple and stupid question. I have a reflex-based statically-rendered page from some stub data, now I want to make it a bit more alive by getting initial data from XHR request. I got as far as getting “Event MyData” that should work correctly (in theory), which is nice, I’m “almost there”. Now I have a problem rendering my DOM with data from this MyData. I see how you can render, say, text node by converting event into dynamic and using `dynText` to render it, but what would be an analogy for "elWith"?
Just to remind:
elWith :: (MonadWidget t m, Attributes m attrs) => String -> ElConfig attrs -> m a -> m a
What I'm looking for is probably:
dynElWith :: (MonadWidget t m, Attributes m attrs) => String -> Dynamic (ElConfig attrs) -> m a -> m a
Or maybe even:
dynElWith :: (MonadWidget t m, Attributes m attrs) => String -> Dynamic (ElConfig attrs) -> Dynamic (m a) -> m a
Thanks.