src/app/Logic/Front/Helper.php
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;
    }
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;
    }
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 ; }
Function for return html from file in template

@param string $file
@param string $package
@return void
Function for return html from file in template