private function resolveLocalPath($partialPath)
    {
        $partialDir = str_replace('./', '', dirname($partialPath));
        $partialsDir = realpath(sprintf('%s%s',
                $this->_viewsDir,
                $partialDir
            )) . DIRECTORY_SEPARATOR;

        return $partialsDir . basename($partialPath);
    }