Line a tart tin with pastry and prick. Rest in the fridge for at least half an hour.
Line case with greaseproof paper, weigh down with baking beans and bake blind for 10 minutes in an oven that’s been pre-heated to 190 Degrees Celsius. Remove beans and paper, and bake for a further 5-10 minutes. Remove and reduce heat to 180 degrees celcius.
Pre-heat grill to hot. Thread unpeeled garlic cloves onto a skewer and grill with aubergine and red pepper until all are charred. Peel the garlic, then de-skin and chop the pepper and aubergine.
Process aubergine with garlic and a couple of spoonfuls of yoghurt until smooth, then add remaining yoghurt, yolks and eggs and seasoning and process again. Spread half the mixture onto the pastry case, cover with strips of pepper, then smooth on rest of mixture. Arrange cheese on top and scatter with rosemary. Bake for 25-30 minutes, until just set. Serve warm or cold.