npm init -y
npm install vue vue-server-renderer --save
npm server.js
npm install express --save
建立一个模板html,会把new Vue的template注入到模板的固定注释节点【两端不能有空格】
<!--vue-ssr-outlet-->
fs.readFileSync('./index.template.html', 'utf-8')
使用三个大括号包裹着,就可以原封不动的给模板插值
{{{ metas }}}