protected function iterate (ContextInterface $root) 
	{
		$this->generateIndexFile ($root);

		foreach ($root->getChildren() as $item) 
		{
			if ($item instanceof FileContext)
			{
				$this->generateFile ($item);
			}
			elseif ($item instanceof DirectoryContext)
			{
				$this->iterate ($item);
			}
		}
	}