Пример #1
0
 protected function replaceTemplateAlias($alias, $children = null)
 {
     $tree = $this->aliases[$alias];
     if (!$tree) {
         Debug::toss('Could not find alias: ' . $alias);
     }
     if (!is_array($tree)) {
         $tree = self::parseTemplateString($tree);
     }
     if ($children) {
         $tree = Arrays::replaceAll('!children', $children, $tree);
     }
     return $tree;
 }