Preheat the oven to 375 degrees F. Spray a 8x8-inch baking pan with cooking spray.
The Filling:
In a large bowl, combine the raspberries, lemon juice, sugar and cornstarch. Set aside.
The base and topping:
In a medium-sized bowl, combine granulated and brown sugars. Stir in flour, baking powder, salt, and ground ginger.
Cut in cold butter pieces with a pastry cutter or a fork until the mixture is crumbly. Stir a lightly beaten egg and sliced almonds into the flour mixture.
Press half of the flour mixture into the bottom of the prepared pan. Spread the raspberry mixture over the crust. Sprinkle the rest of the flour mixture over the raspberries.
Bake in the preheated oven for 35-40 minutes, or until the top is light brown. Left the bars cool on a rack and then place in the fridge to chill. This will make the bars easier to cut and remove from the pan. Cut into squares and serve.