Take frozen pastry puff or filo out of the freezer and allow it to warm to room temperature. (This will take about 45 minutes. If you forget, you can carefully microwave it for about 20, flip it, and then microwave it again for 20 seconds to warm it up.)
Preheat oven to 400°F (204°C).
Make the filling
Saute the peeled and diced onion in 2 tbsp olive oil until it's translucent.
Add garlic, drained and pressed tofu, nutritional yeast, salt, and pepper (or my tofu feta). Saute for 3 more minutes. (If using store-bought feta, add it at the end.)
Add 16 oz spinach and cook for a few minutes until spinach wilts. (If using the store-bought feta instead of the tofu feta, add it now). Set the tofu spinach mixture aside while you prepare your pastry.
Prepare the pastry and bake
Brush the bottom of a baking dish with olive oil, then add 7 layers of filo to the bottom of the baking dish, brushing a thin layer of oil between each layer of filo. (If using puff pastry, place one of the pastry puffs on the bottom.
Pour the spinach filling on top and spread out evenly.
Scrunch up individual pieces of filo into an accordion shape and place them next to each other until you have formed a layer across your whole baking pan. (If using puff pastry, simply place the second pastry puff layer on top of the spinach layer.
Brush the top layer with additional olive oil, melted vegan butter, or a vegan egg wash if using puff pastry.
If using filo - bake at 375° F (190° C) for 15 minutes. If using puff pastry - bake at 400° F (204° C) for 25 minutes until it puffs up and turns golden brown.
Notes
Allow the puff pastry or filo to warm up to room temperature before you try to work it or it will break.
Keep your filling relatively dry. Press your tofu well to get out excess water and if you are using frozen spinach, be sure to thaw it and press the water out first before using. A wet filling will make it soggy and your pastry puffs won't rise and puff up as well.
Bake until your pastry puff rises and turns a golden brown.
For more flavorful tofu, you can mix up my recipe fortofu fetaahead of time and use it instead of plain tofu.