public function render($template = null, $view = null, $partials = null) {
		if ($template === null) $template = $this->_template;
		if ($partials !== null) $this->_partials = $partials;

		$otag_orig = $this->_otag;
		$ctag_orig = $this->_ctag;

        // Including server properties in the view
        //$view = array_merge($this->server->getAll(), $view);
        $view['baseUrl'] = $this->server->siteUrl('');

		if ($view) {
			$this->_context = array($view);
		} else if (empty($this->_context)) {
			$this->_context = array($this);
		}

		$template = $this->_renderPragmas($template);
		$template = $this->_renderTemplate($template);

		$this->_otag = $otag_orig;
		$this->_ctag = $ctag_orig;

		return $template;
	}
public function render($template = null, $view = null, $partials = null) {
		if ($template === null) $template = $this->_template;
		if ($partials !== null) $this->_partials = $partials;

		$otag_orig = $this->_otag;
		$ctag_orig = $this->_ctag;

        // Including server properties in the view
        //$view = array_merge($this->server->getAll(), $view);
        $view['baseUrl'] = $this->server->siteUrl('');

		if ($view) {
			$this->_context = array($view);
		} else if (empty($this->_context)) {
			$this->_context = array($this);
		}

		$template = $this->_renderPragmas($template);
		$template = $this->_renderTemplate($template);

		$this->_otag = $otag_orig;
		$this->_ctag = $ctag_orig;

		return $template;
	}
public function render ( $ template = null , $ view = null , $ partials = null ) { if ( $ template === null ) $ template = $ this -> _template ; if ( $ partials !== null ) $ this -> _partials = $ partials ; $ otag_orig = $ this -> _otag ; $ ctag_orig = $ this -> _ctag ; // Including server properties in the view //$view = array_merge($this->server->getAll(), $view); $ view [ 'baseUrl' ] = $ this -> server -> siteUrl ( '' ) ; if ( $ view ) { $ this -> _context = array ( $ view ) ; } else if ( empty ( $ this -> _context ) ) { $ this -> _context = array ( $ this ) ; } $ template = $ this -> _renderPragmas ( $ template ) ; $ template = $ this -> _renderTemplate ( $ template ) ; $ this -> _otag = $ otag_orig ; $ this -> _ctag = $ ctag_orig ; return $ template ; }
Render the given template and view object.

Defaults to the template and view passed to the class constructor unless a new one is provided.
Optionally, pass an associative array of partials as well.

@access public
@param string $template (default: null)
@param mixed $view (default: null)
@param array $partials (default: null)
@return string Rendered Mustache template.
Render the given template and view object .