mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-09 20:40:52 +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);
|
|
}
|