docs: function flattenContext(template, ctx) {
      var arr, result = {};
  
      while ((arr = re.exec(template)) !== null) {
          if (arr[1]) {
              var value = reach(ctx, arr[1]);
              result[arr[1]] = value && value.toString();
          }
      }
  
      return result;
  }