These are chat archives for opal/opal

17th
Sep 2014
CJ Lazell
@cj
Sep 17 2014 20:29
hey, is it possible to use opal-jquery server side to manipulate html before it is loaded into the browser?
Elia Schito
@elia
Sep 17 2014 20:31
@cj no, opal-jquery wraps the real jquery, you’d better of with nokogiri and opal-browser that share the same api afaik
@cj that way you could share the code between the two
CJ Lazell
@cj
Sep 17 2014 20:32
@elia we are using nokogiri currently, just thought it would be nicer to use jquery for both instead of having two syntax's
Elia Schito
@elia
Sep 17 2014 20:34
@cj if you can giva a try to opal-browser (https://github.com/opal/opal-browser#readme), it covers everything you would do with jquery and much more
CJ Lazell
@cj
Sep 17 2014 20:35
@elia so you are saying to still use nokogiri server side and then opal-browser for client side?
Elia Schito
@elia
Sep 17 2014 20:35
and reusing code in the frontend (or vice-versa) is one of the most satisfying things with opal :)
yep
CJ Lazell
@cj
Sep 17 2014 20:37
@elia thank you
Elia Schito
@elia
Sep 17 2014 20:39
:)
Elia Schito
@elia
Sep 17 2014 20:48
@meh would be nice to generate yard docs for opal-browser too, it seems to be the better documented opal project around :)
Eric West
@edubkendo
Sep 17 2014 21:36
:+1: that
Elia Schito
@elia
Sep 17 2014 21:37
@edubkendo of course anyone’s invited and I’ll happily merge any PR for gh-pages :P
Eric West
@edubkendo
Sep 17 2014 21:38
;P