Advertisement
ATuin

Untitled

Jul 30th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. foreign import newRactive
  2.   " var newRactive = (function () {\
  3.  \ var a = require('ractive/ractive');\
  4.  \ return new a({\
  5.  \  template: '<div></div>', \
  6.  \  el: 'test', \
  7.  \  data: {test:1, test2:2}})})();" :: Fn0 (RactiveEff Ractive)
  8.  
  9.  
  10. get :: forall a. String -> Ractive -> RactiveEff a
  11. get = ffi ["field", "ractive"] "ractive.get(field)"
  12. --get = ffi ["field", "ractive"] "ractive.get(field)"
  13.  
  14. set :: forall a. String -> a -> RactiveEff Ractive
  15. set = ffi ["selector", "value", "ractive"] "ractive.set(selector, value); return ractive;"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement