Latte\Runtime\ISnippetBridge::renderChildren PHP Method

renderChildren() public method

public renderChildren ( ) : void
return void
    function renderChildren();

Usage Example

Beispiel #1
0
 public function renderSnippets(array $blocks, array $params)
 {
     if ($this->renderingSnippets || !$this->bridge->isSnippetMode()) {
         return FALSE;
     }
     $this->renderingSnippets = TRUE;
     $this->bridge->setSnippetMode(FALSE);
     foreach ($blocks as $name => $function) {
         if ($name[0] !== '_' || !$this->bridge->needsRedraw(substr($name, 1))) {
             continue;
         }
         $function = reset($function);
         $function($params);
     }
     $this->bridge->setSnippetMode(TRUE);
     $this->bridge->renderChildren();
     return TRUE;
 }