Added the option htmlOutDirFlatten. Defaults to false to ensure that generated file names don't collided.