private function block($nodes)
    {
        $code = $this->walk($nodes, 0);
        $key = ucfirst(md5($code));

        if (!isset($this->blocks[$key])) {
            $this->blocks[$key] = sprintf($this->prepare(self::BLOCK_FUNCTION, 0), $key, $code);
        }

        return $key;
    }
private function block($nodes)
    {
        $code = $this->walk($nodes, 0);
        $key = ucfirst(md5($code));

        if (!isset($this->blocks[$key])) {
            $this->blocks[$key] = sprintf($this->prepare(self::BLOCK_FUNCTION, 0), $key, $code);
        }

        return $key;
    }
private function block ( $ nodes ) { $ code = $ this -> walk ( $ nodes , 0 ) ; $ key = ucfirst ( md5 ( $ code ) ) ; if ( ! isset ( $ this -> blocks [ $ key ] ) ) { $ this -> blocks [ $ key ] = sprintf ( $ this -> prepare ( self :: BLOCK_FUNCTION , 0 ) , $ key , $ code ) ; } return $ key ; }
Generate Mustache Template inheritance block function PHP source.

@param array $nodes Array of child tokens

@return string key of new block function
Generate Mustache Template inheritance block function PHP source .