To make the coconut milk, mix the coconut milk, sugar, rice flour and salt in a saucepan and bring to the boil. Once the mixture is boiling add the pandanus leaves or vanilla extract. When the mixture starts to give off the fragrance of the leaves, take off the heat and strain into a serving bowl, discarding the leaves.