Preheat the oven to 180C (350F).
To make the pastry,
Place butter and sugar in a bowl and beat until light and creamy.
Add egg and vanilla essence and beat well.
Add sifted flour, baking powder and salt, and stir until combined and the mixture forms a sticky dough.
Flour hands and press pastry evenly into the base of a greased and baking paper-lined 23 x 23 cm (9 x 9 in) tin
Bake pastry base in the oven for 15 minutes.
To make filling,
Place eggs and sugar in a bowl and whisk until pale.
Add coconut, flour, cream, coconut milk, lemon juice, zest and passionfruit pulp.
Stir to combine.
Pour filling over pastry base in the tin.
Bake for 35-40 minutes or until golden.
Remove from the oven and allow to cool completely in the tin.
When cool, slice into squares. Makes 20 squares.