public static function get($file, $data = [])
    {
        $path = self::load('views.' . $file);

        extract($data, EXTR_SKIP);

        include $path;
    }
public static function get($file, $data = [])
    {
        $path = self::load('views.' . $file);

        extract($data, EXTR_SKIP);

        include $path;
    }
public static function get ( $ file , $ data = [ ] ) { $ path = self :: load ( 'views.' . $ file ) ; extract ( $ data , EXTR_SKIP ) ; include $ path ; }
Include a view with data.

@param string $file The template you want to display
@param object $item The optional data of the current object in the loop
Include a view with data .