In a pan set over medium heat, add 1 tablespoon of olive oil. Once heated, add the spinach and cook until wilted, which should take about 4-5 minutes. Remove from pan and set the spinach aside to cool.
In the same pan, add the remaining tablespoon of olive oil and cook the finely chopped cooking onion until translucent.
Add the minced garlic, dried dill, dried basil, finely chopped green onion and salt and pepper to taste. Cook for an additional minute, then remove from heat.
Using a kitchen towel, take the cooled spinach and wrap it tightly, twisting to squeeze out as much liquid as possible.
Finely chop the spinach and combine it with the cooked onions and spices in a bowl. Add the crumbled feta cheese and lightly beaten egg. Mix all the ingredients thoroughly, ensuring they are well combined.
Triangle Assembly
Start by laying out one sheet of phyllo pastry and lightly brushing it with melted butter. Place another sheet on top and cut the phyllo lengthwise twice, creating three strips.
Take one strip and place a tablespoon of the spinach and feta mixture at one end. Fold the pastry over the filling, creating a triangle shape. Continue folding the pastry in a triangular manner until you reach the end.
Brush a little bit of butter on the end piece to seal the triangle. Repeat this process until all the filling is used up.
Baking the Spanakopita
Preheat your oven to 375 degrees Fahrenheit (190 degrees Celsius) and line a baking sheet with parchment paper to prevent sticking.
Arrange the triangles on the baking sheet, leaving about 1/2 inch of space between each.
Bake for 18-20 minutes or until the triangles turn a beautiful golden brown.
Once they are ready, allow them to cool slightly before serving. Try serving with Tzatziki dip!