Server-side rendering for Svelte components. Work-in-progress
npm install --save svelte-ssr
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.