1 | ;
|
2 |
|
3 | var ejs = require('ejs');
|
4 |
|
5 | module.exports = function (to, contents, context, tplSettings, options) {
|
6 | context = context || {};
|
7 | tplSettings = tplSettings || {};
|
8 |
|
9 | this.append(
|
10 | to,
|
11 | ejs.render(
|
12 | contents.toString(),
|
13 | context,
|
14 | tplSettings
|
15 | ),
|
16 | options);
|
17 | };
|