These are chat archives for opal/opal

6th
Sep 2017
深渊漫步
@CicholGricenchos
Sep 06 2017 08:39
Hi everyone, I made an erb to virtual dom converter, outputting ruby codes. I'd like to use it in React's render method.
But how could I load these erb templates? Should I write a sprockets processor and use something like Opal's require?
Elia Schito
@elia
Sep 06 2017 08:40
@CicholGricenchos yes, at least if you plan to use it inside sprockets
深渊漫步
@CicholGricenchos
Sep 06 2017 08:42
@elia I see. I am going to figure out how opal-sprockets works :smile:
Elia Schito
@elia
Sep 06 2017 08:43
@CicholGricenchos good luck! …jokes aside the easiest thing should be to take inspiration from the current ERB processor…
深渊漫步
@CicholGricenchos
Sep 06 2017 08:46
that's helpful, thanks!
Elia Schito
@elia
Sep 06 2017 08:48
@CicholGricenchos ping me if you need anything, I spent enough time dealing with sprockets and I already know a couple of things :smile:
Barrie Hadfield
@barriehadfield
Sep 06 2017 08:49
@elia @fkchang I have been meaning to say, Rack + Opal Sprockets + OpalHotReloader is an outstanding backend. Its simple to setup and very fast to work with. We are building the new Hyperloop website this way, with all the JS coming in through NPM and Webpack (including all of Hyperloop client-side code). From a Ruby perspective I think this is a killer stack. Thank you!
Elia Schito
@elia
Sep 06 2017 08:51
@barriehadfield great to hear that! go Hyperloop! :smile:
Forrest Chang
@fkchang
Sep 06 2017 20:57
@barriehadfield I like a lean mean stack - I'm assuming you're documenting how to work that way