Mix all the ingredients except sugar in a pot and bring to the boil. Simmer until most of the water is absorbed, adding sugar about three quarters of the way through the cooking process.
Pour into moulds and allow to set. Serve when cool, with coconut milk and palm sugar.