In a vessel add finely chopped pineapple and 2.5 cups of water. Bring this to boil.
Mean while heat a wok/kadai adding 3 tsp of ghee and cashews. Fry them till they slightly change color, then remove them. In the remaining ghee fry raisins till they puff up. Remove and keep them aside. Include one more tsp of ghee and roast rava/semolina till nice aroma wafts out.
Keeping the flame in minimum, add the cooked pineapple along with water to roasted rava. Be careful at this stage as there are chances of lump formation and the mixture may splutter too. Keep stirring while including water to rava. Add soaked saffron or food color and mix well.
Rava gets cooked and forms a lump, at this stage add sugar. Sugar gets diluted giving shiny texture to pineapple kesari.
Mix in rest of the ghee and stir well. Finally add roasted cashews, raisins and cardamom powder. Switch off the flame.
Pineapple kesari is ready. Serve as quick dessert and relish.