public static function render_file_template($file, $arr_vars = array()) { //-- if (!SmartAppInfo::TestIfModuleExists('mod-tpl-twig')) { return '{# ERROR: SmartTwigTemplating :: The module mod-tpl-twig cannot be found ... #}'; } //end if //-- if (self::$twig === null) { self::$twig = new \SmartModExtLib\TplTwig\Templating(); } //end if //-- return (string) self::$twig->render((string) $file, (array) $arr_vars); //-- }