/** * {@inheritdoc} * * @throws TemplaterException */ public function process($source) { try { $root = new Node($this, '@root', $source); } catch (\Exception $exception) { throw $this->clarifyException($exception); } return $root->compile(); }