2 medium aubergines, cut into 1cm/½in slices
1 small bunch fresh basil, roughly chopped
500g/1lb 2oz courgettes, cut into 1cm/½in slices
2 garlic cloves, crushed
2 red peppers, deseeded and cut into 1cm/½in slices
2 red onions, finely chopped
2 tsp chopped fresh thyme leaves
2â3 large tomatoes, each cut into 8 wedges
500g/1lb 2oz tomato passata
salt and freshly ground black pepper
1 tsp caster sugar
6 tbsp olive oil
50g/1¾oz gruyère, grated (or similar vegetarian cheese, such as emmental)