01 - In a small saucepan, combine granulated sugar, water, and molasses.
02 - Add sliced fresh ginger or ground ginger, ground cinnamon, allspice, nutmeg, cloves, and salt. Stir to combine.
03 - Bring the mixture to a gentle boil over medium heat, stirring continuously until the sugar dissolves completely.
04 - Reduce heat and simmer gently for 10 to 12 minutes to allow the spices to infuse thoroughly.
05 - Remove from heat and stir in vanilla extract.
06 - If fresh ginger was used, strain the syrup through a fine mesh sieve to remove solids.
07 - Allow the syrup to cool completely, then transfer to a clean airtight bottle or jar. Refrigerate and use within three weeks.