Sam Gammon
01/01/2023, 2:52 AMnative-imagecurl -sSL --tlsv1.2 dl.elide.dev/cli/install.sh | bash -s -👆 the one liner works on Darwin (amd64/arm64), and Linux (amd64) so far.If you prefer NPX:
npx @elide-dev/elide@alpha shellelide shellURLesbuild@Page class Index : PageWithProps<YourProps>(YourProps.serializer()) {
    // Serve React SSR.
    @Get("/") suspend fun indexPage(request: HttpRequest<*>) = ssr(request) {    // 1: tell the server we're going to do SSR for this request
      head {
        title { +"Hello, Elide!" }
        stylesheet("/styles/base.css")
        stylesheet("/styles/main.css")
        script("/scripts/ui.js", defer = true)   // <-- 2: serve the CSR bundle so it can hydrate the react SSR response
      }
      body {
        injectSSR(this@Index, request)    // <-- 3: execute the JS VM to produce the SSR response, and splice it into the server response
      }
    }
}