Slide 59
Slide 59 text
Server-Side Rendering(with 2.0)
const Vue = require('vue');
const app = new Vue({
render: function (h) {
return h('p', 'hello world');
};
});
const renderer = require('vue-server-renderer').createRenderer();
renderer.renderToString(app, (error, html) => {
if (error) throw error;
console.log(html);
});
http://vuejs.org/guide/ssr.html