docs: function createPagination(req) {
    return function createPagination(pages, page, liClass, anchorClass) {
      var params = qs.parse(url.parse(req.url).query);
      var str = '';
  
      params.page = 1;
      var clas = (page == 1 && 'active') || '';
  
      for (var p = 1; p <= pages; p++) {
        params.page = p;
        clas = (page == p && 'active') || '';
  
        var href = '?' + qs.stringify(params);
  
        str += `<li class="${liClass} ${clas}"><a class="${anchorClass}" href="${href}">${p}</a></li>`;
      }
  
      return str;
    };
  }