01 -
Preheat the oven to 375 degrees Fahrenheit.
02 -
Lightly brush a baking dish or loaf pan with olive oil to prevent sticking.
03 -
In a large bowl, combine ricotta cheese, crumbled feta, chopped spinach or kale, minced garlic, salt, black pepper, and chopped thyme or rosemary. Mix until thoroughly blended.
04 -
Arrange a layer of sweet potato slices to cover the base of the prepared dish. Evenly spread a portion of the cheese and greens mixture over the potatoes. Repeat these layers, finishing with a final layer of sweet potatoes on top.
05 -
Cover the dish with aluminum foil and bake for 35 to 40 minutes, or until the sweet potatoes are tender when pierced with a fork.
06 -
Remove the foil. Sprinkle chopped walnuts and dried cranberries over the top layer, and drizzle with honey or maple syrup.
07 -
Return the dish to the oven, uncovered, and bake for an additional 5 minutes until the top is golden and sticky.
08 -
Garnish with a sprig of rosemary if desired, and serve warm.