/**
  * testPartial
  *
  * @since 2.3.0
  */
 public function testPartial()
 {
     /* setup */
     Stream::setup('root');
     $file = new StreamFile('partial.phtml');
     StreamWrapper::getRoot()->addChild($file);
     /* actual */
     $actual = Template::partial(Stream::url('root/partial.phtml'));
     /* compare */
     $this->assertTrue(is_string($actual));
 }
 /**
  * render
  *
  * @since 2.2.0
  *
  * @param string $alias
  * @param string $path
  *
  * @return string
  */
 public static function render($alias = null, $path = null)
 {
     $titleElement = new Html\Element();
     $titleElement->init('h2', array('class' => 'title_content', 'title' => $alias));
     $linkElement = new Html\Element();
     $linkElement->init('a', array('href' => Registry::get('secondParameter') === $alias ? null : Registry::get('rewriteRoute') . 'preview/' . $alias, 'title' => $alias));
     /* collect output */
     $output = $titleElement->html($linkElement->text($alias));
     $output .= Template::partial($path);
     return $output;
 }