mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-04-20 16:39:09 +00:00
11 lines
236 B
JavaScript
11 lines
236 B
JavaScript
var runtime = require('./');
|
|
|
|
module.exports = wrap;
|
|
function wrap(template, templateName) {
|
|
templateName = templateName || 'template';
|
|
return Function('pug',
|
|
template + '\n' +
|
|
'return ' + templateName + ';'
|
|
)(runtime);
|
|
}
|