public function render($parameters = [], $context = null)
    {
        foreach ($parameters as $selector => $data) {
            // Render all elements that match the given selector
            $elements = $this->select($selector, $context);
            foreach ($elements as $element) {
                $this->renderElement($element, $data);
            }
        }

        return $this;
    }
public function render($parameters = [], $context = null)
    {
        foreach ($parameters as $selector => $data) {
            // Render all elements that match the given selector
            $elements = $this->select($selector, $context);
            foreach ($elements as $element) {
                $this->renderElement($element, $data);
            }
        }

        return $this;
    }
public function render ( $ parameters = [ ] , $ context = null ) { foreach ( $ parameters as $ selector => $ data ) { // Render all elements that match the given selector $ elements = $ this -> select ( $ selector , $ context ) ; foreach ( $ elements as $ element ) { $ this -> renderElement ( $ element , $ data ) ; } } return $ this ; }
Render the current HTMLElement with a given set of parameters.
Parameters can contain attributes or element-specific data based
on the tag name.
For more details, read our documentation.

@param array $parameters
@param mixed $context

@return $this

@throws InvalidArgumentException
@throws \DOMException
Render the current HTMLElement with a given set of parameters . Parameters can contain attributes or element - specific data based on the tag name . For more details read our documentation .