public function render($template, array $data = array())
    {
        $data = array_merge($data, $this->website->helpers());

        $data['config'] = $this->website;

        $renderer = $this->website->renderer();

        return $renderer->render($template, $data);
    }
public function render($template, array $data = array())
    {
        $data = array_merge($data, $this->website->helpers());

        $data['config'] = $this->website;

        $renderer = $this->website->renderer();

        return $renderer->render($template, $data);
    }
public function render ( $ template , array $ data = array ( ) ) { $ data = array_merge ( $ data , $ this -> website -> helpers ( ) ) ; $ data [ 'config' ] = $ this -> website ; $ renderer = $ this -> website -> renderer ( ) ; return $ renderer -> render ( $ template , $ data ) ; }
Renders the partial template.

@param  string $template
@param  array  $data
@return string
Renders the partial template .