wrap.js 246 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 var runtime = require('./'); module.exports = wrap; function wrap(template, templateName) { templateName = templateName || 'template'; return Function('pug', template + '\n' + 'return ' + templateName + ';' )(runtime); }