but notice, that you can't just do exports.compile = smtpl, because if smtpl accept second argument object it would return directly the rendered string. So..
exports.compile = function (str) {
return smtpl(str);
};
And maybe, would be needed some detection if opts.delimiter or something to pass it as 3rd argument to smtpl.
https://www.npmjs.com/package/smtpl
but notice, that you can't just do
exports.compile = smtpl
, because ifsmtpl
accept second argument object it would return directly the rendered string. So..And maybe, would be needed some detection if
opts.delimiter
or something to pass it as 3rd argument tosmtpl
.