src/Charcoal/App/Handler/TemplateableHandlerTrait.php
protected function renderHtmlTemplateContent()
    {
        $config = $this->config();

        $factory = $this->templateFactory();
        $factory->setDefaultClass($config['default_controller']);

        $controller = $factory->create($config['controller']);
        $controller->init($this->httpRequest());
        $controller['app_handler'] = $this;
        $controller->setData($this->getTemplateData());

        foreach ($config['partials'] as $varName => $templateIdent) {
            $this->view()->setDynamicTemplate($varName, $templateIdent);
        }

        return $this->view()->render($config['template'], $controller);
    }
protected function renderHtmlTemplateContent()
    {
        $config = $this->config();

        $factory = $this->templateFactory();
        $factory->setDefaultClass($config['default_controller']);

        $controller = $factory->create($config['controller']);
        $controller->init($this->httpRequest());
        $controller['app_handler'] = $this;
        $controller->setData($this->getTemplateData());

        foreach ($config['partials'] as $varName => $templateIdent) {
            $this->view()->setDynamicTemplate($varName, $templateIdent);
        }

        return $this->view()->render($config['template'], $controller);
    }
protected function renderHtmlTemplateContent ( ) { $ config = $ this -> config ( ) ; $ factory = $ this -> templateFactory ( ) ; $ factory -> setDefaultClass ( $ config [ 'default_controller' ] ) ; $ controller = $ factory -> create ( $ config [ 'controller' ] ) ; $ controller -> init ( $ this -> httpRequest ( ) ) ; $ controller [ 'app_handler' ] = $ this ; $ controller -> setData ( $ this -> getTemplateData ( ) ) ; foreach ( $ config [ 'partials' ] as $ varName => $ templateIdent ) { $ this -> view ( ) -> setDynamicTemplate ( $ varName , $ templateIdent ) ; } return $ this -> view ( ) -> render ( $ config [ 'template' ] , $ controller ) ; }
Render HTML template.

@see    \Charcoal\App\Route\TemplateRoute::renderTemplate() Equivalent
@see    \Charcoal\App\Route\TemplateRoute::createTemplate() Equivalent
@return string
Render HTML template .