src/Engine.php
public function render(string $template, array $variables = null, ArrayAccess $sections = null)
    {
        if (is_null($sections)) {
            $sections = new ArrayObject();
        }
        $renderer = new Renderer([$this, 'resolve'], $sections);
        $output = $renderer->render($template, $variables);
        return $output;
    }
public function render(string $template, array $variables = null, ArrayAccess $sections = null)
    {
        if (is_null($sections)) {
            $sections = new ArrayObject();
        }
        $renderer = new Renderer([$this, 'resolve'], $sections);
        $output = $renderer->render($template, $variables);
        return $output;
    }
public function render ( string $ template , array $ variables = null , ArrayAccess $ sections = null ) { if ( is_null ( $ sections ) ) { $ sections = new ArrayObject ( ) ; } $ renderer = new Renderer ( [ $ this , 'resolve' ] , $ sections ) ; $ output = $ renderer -> render ( $ template , $ variables ) ; return $ output ; }
Renders a specified template.

@param string $template path to the template. The path is relative from basedirs
@param array|null $variables template variables to be passed to template
@param ArrayAccess|null $sections array like object to hold section values
Renders a specified template .