@nkduy/server-renderer
TypeScript icon, indicating that this package has built-in type declarations

3.0.11 • Public • Published

@nkduy/server-renderer

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

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

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

Readme

Keywords

Package Sidebar

Install

npm i @nkduy/server-renderer

Weekly Downloads

0

Version

3.0.11

License

MIT

Unpacked Size

2.4 kB

Total Files

4

Last publish

Collaborators

  • nkduy