jstransformers / jstransformer

Normalize the API of any JSTransformer.
http://npm.im/jstransformer
MIT License
153 stars 12 forks source link

smtpl #117

Open tunnckoCore opened 8 years ago

tunnckoCore commented 8 years ago

https://www.npmjs.com/package/smtpl

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.