public function view($slug, $data = [])
    {
        if ($this->can_proceed()) {
            // As this is the correct route, apply middleware stack.
            $this->apply_middleware();

            // Passed all middleware.
            if ($this->can_proceed()) {
                do_action("snap_render_view_{$slug}", Container::get('request'), $data);
                
                View::render($slug, $data);

                $this->has_matched_route = true;

                echo \ob_get_clean();
            }
        }
    }