function write($outDir)
 {
     if (!$this->isLoaded) {
         $this->load();
     }
     if ($this->errors) {
         throw new \Exception("Site Has Errors");
     }
     $this->siteContainer['log']->notice("Starting writing", array('dir' => $outDir));
     $this->theme->write($outDir);
     $this->siteContainer['log']->notice("Finished writing");
 }