Method
1. Preheat the oven to 200C/400F/Gas 6. 2. Line a rectangular baking tin or pie dish with a sheet of puff pastry. Trim the edges if necessary. 3. Fill with alternating layers of the raw onions and cheese, seasoning with salt and ground black pepper. Top with the butter. 4. Cover the pie with the second sheet of pastry. Trim the edges and push down to seal. 5. Cut four leaf shapes from the off-cuts of the pastry. Decorate the top of the pie with the leaves and cut two small slits in the pastry to allow the steam to escape. 6. Brush with the beaten egg and bake for 35-40 minutes, or until the pastry is golden. 7. Serve with a tomato or green salad and a glass of beer.