Safe Haskell | None |
---|---|
Language | Haskell2010 |
Load functions
Synopsis
- writeReadDom :: (FromJSON a, ToJSON a, DomBuilder t m, Prerender js t m) => Text -> a -> m (Dynamic t a)
Documentation
writeReadDom :: (FromJSON a, ToJSON a, DomBuilder t m, Prerender js t m) => Text -> a -> m (Dynamic t a) Source #
Insert an encodable in the document body, in case of the server side rendering we encode it as script tag with jsonval, in case of ghcjsdom we read the value from that script tag first arg is the idname to connect the two up (has to be uniq for a doc)