Evan You 5b09e743a0 fix(ssr): fix escape and handling for raw Text, Comment and Static vnodes преди 6 години
..
__tests__ 5b09e743a0 fix(ssr): fix escape and handling for raw Text, Comment and Static vnodes преди 6 години
src 5b09e743a0 fix(ssr): fix escape and handling for raw Text, Comment and Static vnodes преди 6 години
LICENSE 34989ef7fe chore: license преди 6 години
README.md 8f463b3859 chore: readme преди 6 години
api-extractor.json c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts преди 6 години
index.js e05673f4d3 refactor: rename packages преди 7 години
package.json a5bb1d02b7 release: v3.0.0-beta.5 преди 6 години

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)
})()