classes/View.php
public static function from($template,$data=null){
      $view = new self($template);
      return $data ? $view->with($data) : $view;
    }
public static function from($template,$data=null){
      $view = new self($template);
      return $data ? $view->with($data) : $view;
    }
public static function from ( $ template , $ data = null ) { $ view = new self ( $ template ) ; return $ data ? $ view -> with ( $ data ) : $ view ; }
View factory method, can optionally pass data to pre-init view
@param  string $template The template path
@param  array $data     The key-value map of data to pass to the view
@return View
View factory method can optionally pass data to pre - init view