public static function viewFilename($view, $dirs = null, $extension = null)
    {
        $dirs = self::path($dirs ?: self::get('atomik.dirs.views'));
        $extension = $extension ?: ltrim(self::get('app.views.file_extension'), '.');
        if (($filename = self::findFile("$view.$extension", $dirs)) === false) {
            return self::findFile("$view/index.$extension", $dirs);
        }
        return $filename;
    }