original_string: public function add(array $templates)
      {
          $this->setConfig($templates);
          $this->_compileTemplates(array_keys($templates));
  
          return $this;
      }
code: public function add(array $templates)
      {
          $this->setConfig($templates);
          $this->_compileTemplates(array_keys($templates));
  
          return $this;
      }
code_tokens: public function add ( array $ templates ) { $ this -> setConfig ( $ templates ) ; $ this -> _compileTemplates ( array_keys ( $ templates ) ) ; return $ this ; }
docstring: Registers a list of templates by name
  
  ### Example:
  
  ```
  $templater->add([
  'link' => '<a href="{{url}}">{{title}}</a>'
  'button' => '<button>{{text}}</button>'
  ]);
  ```
  
  @param array $templates An associative list of named templates.
  @return $this
docstring_tokens: Registers a list of templates by name