protected function generatePartials()
    {
        $partials = $this->handlebars->getPartials();
        
        foreach ($partials as $name => $partial) {
            $partials[$name] = sprintf(
                self::BLOCK_OPTIONS_HASH_KEY_VALUE,
                $name,
                "'" . str_replace("'", '\\\'', $partial) . "'"
            );
        }
        
        return $this->prettyPrint(self::BLOCK_OPTIONS_OPEN)
            . $this->prettyPrint('\r\t')
            . implode($this->prettyPrint(',\r\t'), $partials)
            . $this->prettyPrint(self::BLOCK_OPTIONS_CLOSE);
    }