Preheat oven to 180℃.
For the gluten-free pastry recipe, combine the flours, add the water slowly whilst continuing to mix until a smooth dough results. Leave in a bowl covered with clingfilm in the fridge for 30 minutes.
To blind bake the pastry, line a greased 9 inch pie tin with the rolled out pastry dough, allowing excess pastry to hang over the edges of the tin or dish.
Place a large sheet of greaseproof paper on top of the pastry, covering all areas inside and fill with baking beans.
Bake for 15 minutes.
Remove the beans and greaseproof paper and bake a further 5 minutes.
Remove from the oven and allow to cool to room temperature.
For the filling, add the oil, whole, unpeeled garlic cloves and squash to a baking tin or oven dish and bake for 25 minutes at 220℃.
Remove from oven and peel skins from garlic.
Preheat oven to 180℃
Add garlic, pumpkin and all ingredients for the filling, except spinach, to a blender and blitz to a smooth cream and leave aside.
Steam the spinach for 3-5 minutes until wilted and set aside.
Pour the cream filling into the prepared pie case.
Evenly distribute the cooked spinach into the squash filling and bake for 30 minutes.
Allow to cool for 20 minutes before serving. You can also serve it chilled.