These are chat archives for opal/opal

9th
Sep 2014
Artur Ostręga
@aost
Sep 09 2014 21:24
With Opal::Server, is there any way to use a JS constant in the server's main *.erb code, or otherwise pass a variable from the server to main?
In other words, how to use a JS/server variable for the glob here https://github.com/opal/opal-rspec/blob/master/opal/opal/rspec/sprockets_runner.rb.erb#L7
Elia Schito
@elia
Sep 09 2014 22:16
@skofo opal server is a standard sprockets env inside
so you should just be able to append another extension/processor as erb
or use an index.erb and put stuff in meta tags, I usually use them to fill ENV (opal-side)