svelte-ssr

Server-side rendering for Svelte components. Work-in-progress

Installation

npm install --save svelte-ssr

Usage

require( 'svelte-ssr/register' );
const component = require( './components/MyComponent.html' );

const html = component.render({
  foo: 'bar'
});

Note that components are not stateful – you must pass in all the data you need for each render.

License

MIT

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes