4 large yellow onions, thinly sliced
3 tablespoons olive oil or unsalted butter
1 teaspoon salt
1 teaspoon sugar (optional, for extra sweetness)
4 cloves garlic, minced
½ teaspoon dried thyme
½ teaspoon dried rosemary
¼ cup dry white wine or vegetable broth
1 pound pasta of your choice (spaghetti, fettuccine, or penne work well)
½ cup grated Parmesan cheese
Fresh parsley, chopped (for garnish)
Salt and pepper, to taste
