src/Whoops/Util/TemplateHelper.php
public function render($template, array $additionalVariables = null)
    {
        $variables = $this->getVariables();

        // Pass the helper to the template:
        $variables["tpl"] = $this;

        if ($additionalVariables !== null) {
            $variables = array_replace($variables, $additionalVariables);
        }

        call_user_func(function () {
            extract(func_get_arg(1));
            require func_get_arg(0);
        }, $template, $variables);
    }
public function render($template, array $additionalVariables = null)
    {
        $variables = $this->getVariables();

        // Pass the helper to the template:
        $variables["tpl"] = $this;

        if ($additionalVariables !== null) {
            $variables = array_replace($variables, $additionalVariables);
        }

        call_user_func(function () {
            extract(func_get_arg(1));
            require func_get_arg(0);
        }, $template, $variables);
    }
public function render ( $ template , array $ additionalVariables = null ) { $ variables = $ this -> getVariables ( ) ; // Pass the helper to the template: $ variables [ "tpl" ] = $ this ; if ( $ additionalVariables !== null ) { $ variables = array_replace ( $ variables , $ additionalVariables ) ; } call_user_func ( function ( ) { extract ( func_get_arg ( 1 ) ) ; require func_get_arg ( 0 ) ; } , $ template , $ variables ) ; }
Given a template path, render it within its own scope. This
method also accepts an array of additional variables to be
passed to the template.

@param string $template
@param array  $additionalVariables
Given a template path render it within its own scope . This method also accepts an array of additional variables to be passed to the template .