These are chat archives for opal/opal

6th
May 2016
Jamie Gaskins
@jgaskins
May 06 2016 04:17
@elia Instead of going with the Opal::Builder approach to compile the assets for my Roda app, I tried mounting an Opal::Server to handle anything coming into /assets. Figured it might help by not having to restart the entire app when I'm only modifying front-end stuff. But that doesn't seem to be working, either. I think it might be the fact that it uses its own middleware.
This message was deleted
Jamie Gaskins
@jgaskins
May 06 2016 04:24
This message was deleted
This message was deleted
Jamie Gaskins
@jgaskins
May 06 2016 04:29
Deleting messages because I realized a problem I'm having with Rack apps is due to something I've already reported that @elia already told me how to solve.
Jamie Gaskins
@jgaskins
May 06 2016 04:38
@elia Does it seem reasonable to rework Opal::Server to delegate asset compilation to some smaller, more focused Opal::AssetServer Rack app? I ended up having to write my own asset-compiling Rack app to delegate to in this app. :-)
Elia Schito
@elia
May 06 2016 05:58
@jgaskins sounds interesting, anything cleaner or more manageable is welcome, it's ok if you wanna open a PR with your current code just to start the conversation
Jamie Gaskins
@jgaskins
May 06 2016 13:29
:+1:
roupen
@roupen
May 06 2016 21:25
hi guys, I was checking out the opal docs and was trying out some of the code for accessing the native window object and for some reason it's returning null for me. I'm pretty sure I copied and pasted the code exactly as you have it written in the docs: http://goo.gl/lZar8s
Elia Schito
@elia
May 06 2016 21:48
For some reason I think the window var is conflicting with the window global object, using win instead makes it work
@roupen the would be if you caould send a PR to fix the docs