public function addLocation($location)
    {
        $loader = new \Mustache_Loader_FilesystemLoader($location);
        if ($this->mustache->getLoader() instanceof \Mustache_Loader_CascadingLoader) {
            $this->mustache->getLoader()->addLoader( $loader);
        } else {
            $loaders = [$this->mustache->getLoader(), $loader];
            $this->mustache->setLoader(new \Mustache_Loader_CascadingLoader($loaders));
        }
        return $this;
    }
public function addLocation($location)
    {
        $loader = new \Mustache_Loader_FilesystemLoader($location);
        if ($this->mustache->getLoader() instanceof \Mustache_Loader_CascadingLoader) {
            $this->mustache->getLoader()->addLoader( $loader);
        } else {
            $loaders = [$this->mustache->getLoader(), $loader];
            $this->mustache->setLoader(new \Mustache_Loader_CascadingLoader($loaders));
        }
        return $this;
    }
public function addLocation ( $ location ) { $ loader = new \ Mustache_Loader_FilesystemLoader ( $ location ) ; if ( $ this -> mustache -> getLoader ( ) instanceof \ Mustache_Loader_CascadingLoader ) { $ this -> mustache -> getLoader ( ) -> addLoader ( $ loader ) ; } else { $ loaders = [ $ this -> mustache -> getLoader ( ) , $ loader ] ; $ this -> mustache -> setLoader ( new \ Mustache_Loader_CascadingLoader ( $ loaders ) ) ; } return $ this ; }
Adds a new folder to look for templates
@param string $location
@return PlainPhp
Adds a new folder to look for templates