|
|
6 ani în urmă | |
|---|---|---|
| .. | ||
| __tests__ | 5b09e743a0 fix(ssr): fix escape and handling for raw Text, Comment and Static vnodes | 6 ani în urmă |
| src | 6c60ce13e0 fix(compiler-ssr): handle comments codegen + refactor ssr codegen transform | 6 ani în urmă |
| LICENSE | 34989ef7fe chore: license | 6 ani în urmă |
| README.md | 8f463b3859 chore: readme | 6 ani în urmă |
| api-extractor.json | c9bf7ded2e refactor(types): mark internal API exports and exclude from d.ts | 6 ani în urmă |
| index.js | e05673f4d3 refactor: rename packages | 7 ani în urmă |
| package.json | c32ed52b97 release: v3.0.0-beta.9 | 6 ani în urmă |
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)
})()