initial commit
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
var runtime = require('./');
|
||||
|
||||
module.exports = wrap;
|
||||
function wrap(template, templateName) {
|
||||
templateName = templateName || 'template';
|
||||
return Function(
|
||||
'pug',
|
||||
template + '\n' + 'return ' + templateName + ';'
|
||||
)(runtime);
|
||||
}
|
||||
Reference in New Issue
Block a user