Crush cardamom, ginger and garlic in a mortar and pestle to a coarse paste.
Heat coconut oil in the pan. Then add the piece of cinnamon, Pandan leaf, and curry leaves.
Then add your freshly made ginger and garlic paste, finely chopped onions. Fry until the onions start to get brown.