Rarst\Meadow\Core::template_include PHP Метод

template_include() публичный Метод

public template_include ( string $template ) : string | boolean
$template string
Результат string | boolean
    public function template_include($template)
    {
        if ('.twig' === substr($template, -5)) {
            /** @var \Twig_Environment $twig */
            $twig = $this['twig.environment'];
            echo $twig->render(basename($template), apply_filters('meadow_context', array()));
            return false;
        }
        return $template;
    }