Initial commit
This commit is contained in:
10
node_modules/pug-runtime/wrap.js
generated
vendored
Normal file
10
node_modules/pug-runtime/wrap.js
generated
vendored
Normal file
@ -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