src/Page/Page.php
public function renderSections(array $args)
    {
        $section = $this->repository()->getSectionByName($args['id']);
        $view = sprintf(
            '%s.%s.%s',
            $this->ui()->getTheme(),
            $this->ui()->getLayout(),
            $section->getView()
        );

        echo $this->ui()->factory()->make($view)->with($section->getViewData())->render();
    }
public function renderSections(array $args)
    {
        $section = $this->repository()->getSectionByName($args['id']);
        $view = sprintf(
            '%s.%s.%s',
            $this->ui()->getTheme(),
            $this->ui()->getLayout(),
            $section->getView()
        );

        echo $this->ui()->factory()->make($view)->with($section->getViewData())->render();
    }
public function renderSections ( array $ args ) { $ section = $ this -> repository ( ) -> getSectionByName ( $ args [ 'id' ] ) ; $ view = sprintf ( '%s.%s.%s' , $ this -> ui ( ) -> getTheme ( ) , $ this -> ui ( ) -> getLayout ( ) , $ section -> getView ( ) ) ; echo $ this -> ui ( ) -> factory ( ) -> make ( $ view ) -> with ( $ section -> getViewData ( ) ) -> render ( ) ; }
Output the section HTML.

@param array $args
Output the section HTML .