AndyObtiva / glimmer-dsl-opal

Glimmer DSL for Opal (Pure-Ruby Web GUI and Auto-Webifier of Desktop Apps)
MIT License
26 stars 2 forks source link

Tetris example via sinatra? #4

Closed rubyFeedback closed 2 years ago

rubyFeedback commented 2 years ago

Hello Andy,

You already added an example with rails for the tetris example.

I am wondering how to add tetris to sinatra (I actually use sinatra more than rails).

I could then e. g. add a route /tetris and offer the tetris variant via sinatra. :D

So the TL;DR request: could you, if time permits, also add a minimal example on the README that shows how to use this via sinatra? (Here we can assume the user already installed all of glimmer including glimmer-dsl-opal and probably opal as well, so only a standalone example may be needed; perhaps even a standalone .rb file or something, or just a route-added example - either way is fine).

AndyObtiva commented 2 years ago

I am sorry, but Rails is the only web platform I recommend for Glimmer DSL for Opal. Given that the project is open-source, you are welcome to explore other options on your own.