mirror of https://gitlab.com/octtspacc/staticoso
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);
|
||
|
}
|