devsite/node_modules/pug-runtime/wrap.js
2024-07-07 18:49:38 -07:00

11 lines
237 B
JavaScript

var runtime = require('./');
module.exports = wrap;
function wrap(template, templateName) {
templateName = templateName || 'template';
return Function(
'pug',
template + '\n' + 'return ' + templateName + ';'
)(runtime);
}