|
|
5 years ago | |
|---|---|---|
| .. | ||
| __tests__ | b26976b6d8 wip: fix tests | 6 years ago |
| src | 8e30d0c74c types(server-renderer): export SSRContext type (#1199) | 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 | 5 years ago |
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)
})()