This project demonstrates using Enhance to serverside render components in Ruby. It uses Sinatra as a minimal framework but this technique can be used with Ruby on Rails or almost any other framework.
For this library, you first need to install the Extism Runtime by following the instructions in the Ruby SDK Repository.
Download the latest release of the compiled wasm:
curl -L https://github.com/enhance-dev/enhance-ssr-wasm/releases/download/v0.0.3/enhance-ssr.wasm.gz | gunzip > enhance-ssr.wasm
- Install Dependencies
bundle install
- Run Server
ruby app.rb