Inspiration for ways you might want to use Ruby2JS:
- Demo on Repl.it – an example of how to write web components using LitElement/CrystallineElement in Ruby2JS files and a Rake task to compile them to modern ESM.
- Simple functions for a static Bridgetown site – just an example of how you could write simple “functions” using Ruby2JS and lambdas instead. Also see how Bridgetown is using
@ruby2js/webpack-loaderwithin the Webpack config.