src/WPametu/API/Controller.php
public static function view($slug, $name = '', array $args = []){
        $class_name = get_called_class();
        /** @var Controller $instance */
        $instance = $class_name::get_instance();
        $instance->lazy_scripts();
        $instance->load_template($slug, $name, $args);
    }
public static function view($slug, $name = '', array $args = []){
        $class_name = get_called_class();
        /** @var Controller $instance */
        $instance = $class_name::get_instance();
        $instance->lazy_scripts();
        $instance->load_template($slug, $name, $args);
    }
public static function view ( $ slug , $ name = '' , array $ args = [ ] ) { $ class_name = get_called_class ( ) ; /** @var Controller $instance */ $ instance = $ class_name :: get_instance ( ) ; $ instance -> lazy_scripts ( ) ; $ instance -> load_template ( $ slug , $ name , $ args ) ; }
Load view template with arguments

@param string $slug
@param string $name
@param array $args
Load view template with arguments