public function compile(array $blocks) { $this->initState(); foreach ($blocks as $block) { $this->compileGlobal($block); } return $this->finish(); }