public function templater()
    {
        if ($this->_templater === null) {
            $class = $this->getConfig('templateClass') ?: 'Cake\View\StringTemplate';
            $this->_templater = new $class();

            $templates = $this->getConfig('templates');
            if ($templates) {
                if (is_string($templates)) {
                    $this->_templater->add($this->_defaultConfig['templates']);
                    $this->_templater->load($templates);
                } else {
                    $this->_templater->add($templates);
                }
            }
        }

        return $this->_templater;
    }
public function templater()
    {
        if ($this->_templater === null) {
            $class = $this->getConfig('templateClass') ?: 'Cake\View\StringTemplate';
            $this->_templater = new $class();

            $templates = $this->getConfig('templates');
            if ($templates) {
                if (is_string($templates)) {
                    $this->_templater->add($this->_defaultConfig['templates']);
                    $this->_templater->load($templates);
                } else {
                    $this->_templater->add($templates);
                }
            }
        }

        return $this->_templater;
    }
public function templater ( ) { if ( $ this -> _templater === null ) { $ class = $ this -> getConfig ( 'templateClass' ) ? : 'Cake\View\StringTemplate' ; $ this -> _templater = new $ class ( ) ; $ templates = $ this -> getConfig ( 'templates' ) ; if ( $ templates ) { if ( is_string ( $ templates ) ) { $ this -> _templater -> add ( $ this -> _defaultConfig [ 'templates' ] ) ; $ this -> _templater -> load ( $ templates ) ; } else { $ this -> _templater -> add ( $ templates ) ; } } } return $ this -> _templater ; }
Returns the templater instance.

@return \Cake\View\StringTemplate
Returns the templater instance .