Heat oil in a pan,add the shallots,ginger,garlic and green chilies.Saute for about a minute or until the raw smell leaves.Add the Moringa leaves and stir well.Saute for about 2 minutes oruntil cooked through ,over medium flame.
Add the grated coconut,tamarind,sugar ,salt and mix well.Cook for about 30 seconds or until heated through.Switch off the flame and allow to cool completely.
Transfer the moringa- coconut mix into a blender ,add some water and grind to a smooth paste.Add more water according to the consistency required.
For tempering,heat oil in a pan.Add mustard seeds and let it splutter.Add the dried red chilies and curry leaves.Saute for few seconds and add this to the chutney.Serve with idli / dosa.