src/Template.php
public function render($region = null)
    {
        if ($region) {
            return $this->recursiveRender($this->get($region));
        }

        return $this->recursiveRender($this->template);
    }
public function render($region = null)
    {
        if ($region) {
            return $this->recursiveRender($this->get($region));
        }

        return $this->recursiveRender($this->template);
    }
public function render ( $ region = null ) { if ( $ region ) { return $ this -> recursiveRender ( $ this -> get ( $ region ) ) ; } return $ this -> recursiveRender ( $ this -> template ) ; }
Render either a whole template or a specified region. Returns
current contents of a template.

@param string $region

@return string
Render either a whole template or a specified region . Returns current contents of a template .