How to use the vue-server-renderer.parse function in vue-server-renderer

To help you get started, we’ve selected a few vue-server-renderer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jialunguo / vue-server-render-jscHelper / jscHelper.js View on Github external
exports.renderVue = function(vm) {
    if(!global.renderCache) global.renderCache = {};

    var tplId = vm.tplId || vm.template;
    var renderFunc = global.renderCache[tplId];

    if(!renderFunc) {
        renderFunc = global.renderCache[tplId] = new Function('data', makeFunction(genEl(vueSSR.parse(vm.template),;

    return renderFunc(;