Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreign import newRactive
- " var newRactive = (function () {\
- \ var a = require('ractive/ractive');\
- \ return new a({\
- \ template: '<div></div>', \
- \ el: 'test', \
- \ data: {test:1, test2:2}})})();" :: Fn0 (RactiveEff Ractive)
- get :: forall a. String -> Ractive -> RactiveEff a
- get = ffi ["field", "ractive"] "ractive.get(field)"
- --get = ffi ["field", "ractive"] "ractive.get(field)"
- set :: forall a. String -> a -> RactiveEff Ractive
- set = ffi ["selector", "value", "ractive"] "ractive.set(selector, value); return ractive;"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement