01 -
Preheat the oven to 350°F. Prepare two 9-inch cake pans by spraying with baking spray or buttering and lightly flouring them.
02 -
In the bowl of a stand mixer fitted with the whisk attachment (or using a hand mixer), combine the flour, sugar, cocoa, baking powder, baking soda, salt, and espresso powder.
03 -
Add the milk, eggs, and vanilla and beat on medium speed until well combined. Reduce the speed to low and add the coconut oil. Gradually pour in the boiling water and mix on low speed until well combined, about 3 minutes.
04 -
Divide the batter evenly between the prepared pans. Bake for 30 to 35 minutes, or until a wooden toothpick inserted in the center comes out clean. Let the cakes cool for 10 minutes, then turn them out onto wire racks and cool completely.
05 -
Spread the frosting on top of one cake layer. Place the second layer on top and frost the top only.
06 -
In a medium bowl, beat the egg yolks and evaporated milk, then pour the mixture into a large saucepan. Add the sugar and stir until dissolved.
07 -
Add the butter to the saucepan and heat over low, stirring constantly, until thickened, about 10 to 12 minutes.
08 -
Remove the pan from the heat and stir in the vanilla extract, flaked coconut, and toasted pecans. Let cool for about 5 minutes until it reaches a spreading consistency, then use immediately on the cake while still warm.