This is an example with Brisa SSR without hotreloading and with a build process.
To test it:
- Clone the repo:
git clone [email protected]:aralroca/prerender-macro.git - Install dependencies:
cd prerender-macro && bun install - Run demo:
bun run demo:brisa - Open http://localhost:1234 to see the result
- Look at
examples/brisa/dist/index.jsto verify how the static parts have been converted to HTML in string.
The static component is translated to html in string in build-time:
"Static Component \uD83E\uDD76 Random number = 0.41381527597071954";