index.js
function setExtensions(swig, extensions) {
  for (var name in extensions) {
    swig.setExtension(name, extensions[name]);
  }


}
function setExtensions(swig, extensions) {
  for (var name in extensions) {
    swig.setExtension(name, extensions[name]);
  }


}
function setExtensions ( swig , extensions ) { for ( var name in extensions ) { swig . setExtension ( name , extensions [ name ] ) ; } }
Add extensions for Swig
Add extensions for Swig