How to use the swig function from consolidate
Find comprehensive JavaScript consolidate.swig code examples handpicked from public code repositorys.
405 406 407 408 409 410 411 412 413 414var jsonParam = msg; try { console.log('Swig : ' + JSON.stringify(jsonParam)); cons.swig(emailEventJson.template, jsonParam.data) .then(function (html) { console.log(html); sendEmail(emailEventJson, html); })
consolidate.render is the most popular function in consolidate (164 examples)