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
414
var jsonParam = msg;

try {
    console.log('Swig : ' + JSON.stringify(jsonParam));

    cons.swig(emailEventJson.template, jsonParam.data)
        .then(function (html) {
            console.log(html);
            sendEmail(emailEventJson, html);
        })
fork icon0
star icon0
watch icon1