I wrote an article on the Opal blog. It touches some parts on how Opal transforms Ruby to JavaScript, if anyone would be interested :D. We touch low-level interfaces quite a lot, so it may not be very obvious to people new to this approach, but may serve as a some introduction to Opal:
This project looks interesting.
Can I understand it generates JS on server end by dynamic?
Does it have any requirement to web server software?
Thanks.
···
On 2021/11/25 8:32 下午, hmdne wrote:
I wrote an article on the Opal blog. It touches some parts on how Opal transforms Ruby to JavaScript, if anyone would be interested :D. We touch low-level interfaces quite a lot, so it may not be very obvious to people new to this approach, but may serve as a some introduction to Opal:
Well - it can generate JS on server, but also on client (because it's able to compile itself).
In general it's not tied to anything. Can be used as a CLI tool, integrated with Sprockets or Rails. Or even directly with Tilt or Rack. Or you can also generate JavaScript using a rake task.
It's compatible with a browser, which is the primary target, but is also compatible with NodeJS, GJS, QuickJS, to name a few. You can use `opal-repl` CLI tool (by default on NodeJS) which is similar to `irb` but runs on Opal instead of MRI.
In general our aim is to allow you to write a complex website with not a single line of JS.
···
On 11/27/21 00:56, Henrik Y wrote:
This project looks interesting.
Can I understand it generates JS on server end by dynamic?
Does it have any requirement to web server software?
Thanks.
On 2021/11/25 8:32 下午, hmdne wrote:
I wrote an article on the Opal blog. It touches some parts on how Opal transforms Ruby to JavaScript, if anyone would be interested :D. We touch low-level interfaces quite a lot, so it may not be very obvious to people new to this approach, but may serve as a some introduction to Opal: