protected function setTarget(SplFileInfo $file)
    {
        // Page extension
        $ext = $file->getExtension();

        // Twig templates are HTML
        if (!$this->has('template') || $this->get('template') === 'none') {
            $targetExt = $ext;
        }
        else {
            $targetExt = 'html';
        }

        // Get clean source path
        $sourcePath = $this->getCleanPath($file->getRelativePathName());

        // Replace source extension with that of the template
        $this->target = substr($sourcePath, 0, -strlen($ext));
        $this->target .= $targetExt;
    }