public static function fromFile(string $file, string $package)
    {
        $html = '';
        if (file_exists($file)) {
            $html = file_get_contents($file);
            $html = preg_replace(
                "/{(.*)template(.*)}/", "/templates/" . template() . "/" . $package, 
                $html
            );
        }
        return $html;
    }