function views($name, $array = []) {
$twig = new \Twig_Environment(new \Twig_Loader_Filesystem(__DIR__ . '/../app/resources/views'), [
'cache' => __DIR__ . '/../storage/cache/views'
]);
$twig->addFunction(new Twig_SimpleTest('Lang', function ($key) {
return \Lang::Get($key);
}));
return $twig->render($name, $array);
}