You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
5 years ago | |
---|---|---|
.. | ||
__tests__ | 5 years ago | |
src | 5 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
api-extractor.json | 5 years ago | |
index.js | 7 years ago | |
package.json | 5 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)
})()