docs: function(nameOrModule, dirs, config) {
        if (!dirs) {
          dirs = ['.'];
        }
        if (!(dirs instanceof Array)) {
          dirs = [dirs];
        }
  
        dirs = dirs.map(function(dir) {
          if (dir === '/') {
            return '.';
          }
          if (dir.charAt(0) === '/') {
            return path.join(options.dirs.templates.substring(1), dir.substring(1));
          }
          return path.join(options.dirs.client.substring(1), dir);
        });
  
        var mod = ss.require(nameOrModule, 'client/template_engines', function(err) {
          throw new Error('The ' + err.id + ' template engine is not supported by SocketStream internally '+
            'or found in the project packages. Please pass a compatible module instead');
        });
        var engine;
        if (typeof mod === 'function') {
          engine = mod(ss, config, options);
        } else {
          engine = mod.init(ss, config, options);
        }
        return mods.push({
          engine: engine,
          dirs: dirs
        });
      }