Slice the aubergines into even rounds and lightly salt them. Let them sit for a few minutes to draw out moisture and bitterness. Pat them dry and brush with olive oil before roasting or pan-frying until golden and tender.
Heat olive oil in a pan and sauté onions until soft and translucent. Add garlic and cook until fragrant, then stir in lentils, tomato sauce, and herbs. Let it simmer until thick and rich, seasoning with salt and pepper.
Start by spreading a thin layer of sauce in a baking dish. Add a layer of aubergine slices, followed by lentil sauce and a sprinkle of cheese. Repeat the layers until all ingredients are used, finishing with cheese on top.
Place the dish in a preheated oven at 180°C (350°F). Bake for about 30–40 minutes until the top is golden and bubbling. Allow it to rest for a few minutes before serving so it sets properly.