public function add(array $templates)
    {
        $this->setConfig($templates);
        $this->_compileTemplates(array_keys($templates));

        return $this;
    }
public function add(array $templates)
    {
        $this->setConfig($templates);
        $this->_compileTemplates(array_keys($templates));

        return $this;
    }
public function add ( array $ templates ) { $ this -> setConfig ( $ templates ) ; $ this -> _compileTemplates ( array_keys ( $ templates ) ) ; return $ this ; }
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
Registers a list of templates by name