index.js
function setFilters(swig, filters) {
  for (var name in filters) {
    swig.setFilter(name, filters[name]);
  }
}
function setFilters(swig, filters) {
  for (var name in filters) {
    swig.setFilter(name, filters[name]);
  }
}
function setFilters ( swig , filters ) { for ( var name in filters ) { swig . setFilter ( name , filters [ name ] ) ; } }
Add filters for Swig
Add filters for Swig