Preheat your oven to 350°F (175°C). Grease your baking dish with butter or non-stick spray. Preparing the dish before mixing ensures a smooth workflow and prevents the batter from sticking later.
In a large mixing bowl, combine the flour, baking powder, brown sugar, cinnamon, and ginger. Whisk them together until everything is evenly distributed. Mixing dry ingredients first prevents clumping and ensures even flavor throughout the cake.
In another bowl, whisk together melted butter, milk, eggs, and vanilla until smooth. Room temperature ingredients blend better and create a lighter texture in the final cake. Whisking well at this stage ensures a uniform mixture.
Slowly fold the wet mixture into the dry ingredients using a spatula. Mix until just combined, avoiding overmixing which can make the cake dense. Once combined, swirl in the molasses and pecans if you’re adding them. The molasses gives the cake its signature deep flavor.
Pour the batter into your greased baking dish and spread it evenly. Place the dish in the preheated oven and bake for about 30–35 minutes. You’ll know it’s ready when a toothpick inserted in the center comes out clean. The top should be golden brown with a slightly sticky, pudding-like texture.
Remove the cake from the oven and let it cool for a few minutes. This dessert can be served warm or cold, depending on your preference. Top with whipped cream, vanilla ice cream, or even a drizzle of caramel sauce for extra indulgence.