public function setTemplateSource($newSource, $fromPointer = false)
    {
        if ($fromPointer === true) {
            $this->templateSource = substr($this->templateSource, 0, $this->pointer) . $newSource;
        } else {
            $this->templateSource = $newSource;
        }
    }
public function setTemplateSource($newSource, $fromPointer = false)
    {
        if ($fromPointer === true) {
            $this->templateSource = substr($this->templateSource, 0, $this->pointer) . $newSource;
        } else {
            $this->templateSource = $newSource;
        }
    }
public function setTemplateSource ( $ newSource , $ fromPointer = false ) { if ( $ fromPointer === true ) { $ this -> templateSource = substr ( $ this -> templateSource , 0 , $ this -> pointer ) . $ newSource ; } else { $ this -> templateSource = $ newSource ; } }
Overwrites the template that is being compiled.

@param string $newSource   the template source that must replace the current one
@param bool   $fromPointer if set to true, only the source from the current pointer position is replaced

@return void
Overwrites the template that is being compiled .