Melt the butter, brown sugar, and golden syrup together, then cool slightly. Whisk in the egg.
Mix flour, baking powder, bicarbonate of soda, ginger, cinnamon, and allspice in a bowl. Stir in the butter mixture to form a soft dough, then chill until easy to handle.
Roll the dough and cut panels sized to wrap around two clean cans, plus flat pieces for lids and bases. Bake until firm and lightly browned, then cool completely.
Beat the egg white with icing sugar to make royal icing. Assemble the gingerbread boxes around the cans, using icing to glue the seams, and decorate with chocolate buttons and silver sugar balls.
Let the icing set, remove the cans carefully, and fill the finished gingerbread boxes or mason jars with small treats.