Compiler.php
protected function handleImports(Node $node)
    {

        foreach ($node->find('import') as $importNode) {

            if (!$this->options['allow_imports'])
                $this->throwException(
                    'Imports are disabled in this Jade compiler instance through the [`allow_imports`] option. '.
                    'Set it to [`false`] (default) to enable imports again',
                    $node
                );

            $this->handleImport($importNode);
        }

        return $this;
    }
protected function handleImports(Node $node)
    {

        foreach ($node->find('import') as $importNode) {

            if (!$this->options['allow_imports'])
                $this->throwException(
                    'Imports are disabled in this Jade compiler instance through the [`allow_imports`] option. '.
                    'Set it to [`false`] (default) to enable imports again',
                    $node
                );

            $this->handleImport($importNode);
        }

        return $this;
    }
protected function handleImports ( Node $ node ) { foreach ( $ node -> find ( 'import' ) as $ importNode ) { if ( ! $ this -> options [ 'allow_imports' ] ) $ this -> throwException ( 'Imports are disabled in this Jade compiler instance through the [`allow_imports`] option. ' . 'Set it to [`false`] (default) to enable imports again' , $ node ) ; $ this -> handleImport ( $ importNode ) ; } return $ this ; }
Collects all imports and handles them via ->handleImport.

@param Node $node the root Node to search imports in

@return $this
@throws Exception when the allowImports-options is set to false
Collects all imports and handles them via - > handleImport .