public function supports($name)
    {
        // @codeCoverageIgnoreStart
        $extensions = method_exists($this->jade, 'getExtensions')
            ? $this->jade->getExtensions()
            : $this->jade->getOption('extensions');
        // @codeCoverageIgnoreEnd
        foreach ($extensions as $extension) {
            if (substr($name, -strlen($extension)) === $extension) {
                return true;
            }
        }

        return false;
    }
public function supports($name)
    {
        // @codeCoverageIgnoreStart
        $extensions = method_exists($this->jade, 'getExtensions')
            ? $this->jade->getExtensions()
            : $this->jade->getOption('extensions');
        // @codeCoverageIgnoreEnd
        foreach ($extensions as $extension) {
            if (substr($name, -strlen($extension)) === $extension) {
                return true;
            }
        }

        return false;
    }
public function supports ( $ name ) { // @codeCoverageIgnoreStart $ extensions = method_exists ( $ this -> jade , 'getExtensions' ) ? $ this -> jade -> getExtensions ( ) : $ this -> jade -> getOption ( 'extensions' ) ; // @codeCoverageIgnoreEnd foreach ( $ extensions as $ extension ) { if ( substr ( $ name , - strlen ( $ extension ) ) === $ extension ) { return true ; } } return false ; }
Check if a file extension is supported by Pug.

@param string|\Symfony\Component\Templating\TemplateReferenceInterface $name

@return bool
Check if a file extension is supported by Pug .