0.0.12 • Published 4 years ago

@sveltech/ssr v0.0.12

Weekly downloads
918
License
ISC
Repository
github
Last release
4 years ago

ssr

Universal SSR renderer

Install

npm i @sveltech/ssr

Usage example

const { ssr } require('@sveltech/ssr')
const fs = require('fs')

const template = fs.readFileSync('./dist/index.html')
const script = fs.readFileSync('./dist/app.js')

ssr(template, script, '/blog/ssr-is-fun')
  .then(html => console.log(html + '<!--ssr rendered-->'))

Important!

The HTML is only rendered after an app-loaded event has been emitted from the app.

dispatchEvent(new CustomEvent('app-loaded'))

For more information, refer to the API documentation. https://github.com/sveltech/ssr/wiki/API

0.1.0-0

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.0

4 years ago

0.0.1

4 years ago