This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 1,000,000+ packages pre-installed, including bm-email-templatizer
with all npm
packages installed. Try it out:
var bmEmailTemplatizer = require('../lib'),
path = require('path');
function sendToMandrill() {
}
var options = {
paths: {
base: path.join(process.cwd(), 'example')
},
consolidate: {
locals: {
_raw: function(variableName) {
return String.raw`${variableName}`;
}
},
options: {
pretty: true
}
},
i18nConfigs: {
objectNotation: true
}
};
bmEmailTemplatizer.
setOptions(options)
.allLocalesAllFiles()
.then(function(results) {
console.log('done: ', results);
})
.catch(function(err) {
console.log('bmEmailTemplatizer Err:', err)
});
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.