Evan You d5dbd27193 fix(ssr): handle fallthrough attrs in ssr compile output 6 years ago
..
__tests__ d5dbd27193 fix(ssr): handle fallthrough attrs in ssr compile output 6 years ago
src d5dbd27193 fix(ssr): handle fallthrough attrs in ssr compile output 6 years ago
LICENSE 34989ef7fe chore: license 6 years ago
README.md 8f463b3859 chore: readme 6 years ago
api-extractor.json c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts 6 years ago
index.js e05673f4d3 refactor: rename packages 7 years ago
package.json cf2f278f48 release: v3.0.0-beta.15 6 years ago

README.md

@vue/server-renderer

const { createSSRApp } = require('vue')
const { renderToString } = require('@vue/server-renderer')

const app = createSSRApp({
  data: () => ({ msg: 'hello' }),
  template: `<div>{{ msg }}</div>`
})

;(async () => {
  const html = await renderToString(app)
  console.log(html)
})()