Korean Buddhist temple questions

Today we are praying at the temple and we saw many people queuing for things. As a nosy person, we queued for it too and got a free rice cake kinda stuff and a purple thing wrapped in another plastic. I did not take photo as we gave it to another granny at the temple because we knew we wouldn’t eat it and she happily accepted it. Does anyone know what exactly is it? I’m so curious…