Hi,
In the Erlang world there is Nitrogen (
nitrogenproject.com) which uses JQuery to create a lot of nice HTML.
I can see this working for a thing like Yahtzee, but after that I imagine that it would become clunky to do more advanced UIs.
(I know I have to write a bridge to Nitrogen since it relies heavily on records, but that is doable.)
Are there any libraries for this in Elixir?
I found
https://hex.pm/packages/execjs, but that requires me to write the JavaScript myself - doable, but it would be a lot of work to create a library around that from scratch - the thing needs to be in Elixir, see below.
The context is my Junior Beamster Elixir course (
beamster.org/jb) where I would like to make a GUI for Yahtzee, but going further also do other boardgames. So far my plan has been to switch to Elm, but if I could avoid that and stay in Elixir it would make it so much easier. And I would be able to introduce GUI a lot earlier, which would be a huge motivator for the kids.
Cheers,