Place whole eggplants in baking dish; bake for 40 minutes or until very soft, turning once. Remove from oven, cut in half and let stand until cool enough to handle. Scoop out pulp.
In food processor, place eggplant pulp, onion, garlic, lemon juice, and parsley. Process until smooth. Stir in red pepper flakes if using.