public function output()
    {
        $count = count($this->views);

        if ($count === 0) {
            throw new \LogicException('You need to generate() first');
        } elseif ($count > 1) {
            return $this->zip();
        }

        $view = $this->views[0];
        $view['file']->outputFile($view['name']);
    }