hexo/node_modules/pug-runtime/wrap.js

11 lines
247 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
var runtime = require('./');
module.exports = wrap;
function wrap(template, templateName) {
templateName = templateName || 'template';
return Function(
'pug',
template + '\n' + 'return ' + templateName + ';'
)(runtime);
}