コード例 #1
0
ファイル: TagNode.php プロジェクト: bugadani/minty
 public function compile(Compiler $compiler)
 {
     if ($compiler->getEnvironment()->getOption('debug')) {
         $compiler->indented('//Line %d: %s tag', $this->getData('line'), $this->tag->getTag());
     }
     $this->tag->compile($compiler, $this);
 }
コード例 #2
0
ファイル: Environment.php プロジェクト: bugadani/minty
 /**
  * @param Tag $tag
  */
 public function addTag(Tag $tag)
 {
     $this->tags[$tag->getTag()] = $tag;
 }