src/Template.php
private static function checkFile(string $filename): bool
    {
        return file_exists($filename) and is_file($filename) and basename($filename) === basename(realpath($filename));
    }
private static function checkFile(string $filename): bool
    {
        return file_exists($filename) and is_file($filename) and basename($filename) === basename(realpath($filename));
    }
判断文件是否存在

@param $filename string 文件名及路径
@return bool