コード例 #1
0
ファイル: TemplateProcessor.php プロジェクト: jwdeitch/spiral
 /**
  * {@inheritdoc}
  *
  * @throws TemplaterException
  */
 public function process($source)
 {
     try {
         $root = new Node($this, '@root', $source);
     } catch (\Exception $exception) {
         throw $this->clarifyException($exception);
     }
     return $root->compile();
 }