These are chat archives for opal/opal

5th
Oct 2014
George
@georgeu2000
Oct 05 2014 01:39
@elia - What is the proper way to require files that get transcoded?
I serving the transcoded file with:
def compile folder, file
  content_type "text/javascript"
  Opal.compile( File.read( "#{ folder }/#{ file }.rb" ))
end
Is the require translated into a JS require?
George
@georgeu2000
Oct 05 2014 01:45
I don't see any require in the transcoded JS.
Elia Schito
@elia
Oct 05 2014 08:47
@georgeu2000 compile is pretty low level, you should use the builder to get required stuff in generated source
George
@georgeu2000
Oct 05 2014 13:34
OK, thanks.