original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns the templater instance.
  
  @return \Cake\View\StringTemplate
docstring_tokens: Returns the templater instance .