public function setViewsExtension(string $extension)
  {
    if (substr($extension, 0, 1) != '.') {
      $this->viewsExtension = '.' . $extension;
      return $this;
    }

    $this->viewsExtension = $extension;
    return $this;
  }
public function setViewsExtension(string $extension)
  {
    if (substr($extension, 0, 1) != '.') {
      $this->viewsExtension = '.' . $extension;
      return $this;
    }

    $this->viewsExtension = $extension;
    return $this;
  }
public function setViewsExtension ( string $ extension ) { if ( substr ( $ extension , 0 , 1 ) != '.' ) { $ this -> viewsExtension = '.' . $ extension ; return $ this ; } $ this -> viewsExtension = $ extension ; return $ this ; }
Set default caching directory.

@param  string $directory
@return Template
Set default caching directory .