Esempio n. 1
0
 public function enterComment(Comment $node)
 {
     $this->write('comment(' . $node->getCondition(), true, false)->indent();
 }
 public function enterComment(Comment $comment)
 {
     if (!$comment->isRendered()) {
         return false;
     }
     if ($comment->hasCondition()) {
         $open = '<!--' . $comment->getCondition() . '>';
     } else {
         $open = '<!--';
     }
     if ($comment->hasContent()) {
         $this->write($open . ' ', $comment->hasParent(), false);
     } else {
         if ($comment->hasChilds()) {
             $this->write($open, true, true)->indent();
         }
     }
 }