Note: Additional flavouring may be added such as Thyme, Bacon and Anchovies all work well.
Roll out dough on a floured surface with a floured rolling pin. Cut into 4" squares. Make a "V" cut along two edges of the square about " in from the edge. Pull the outside "V" over to the opposite corner and pinch together (see picture). Chill until firm, about 30 minutes.
Add butter to skillet and cook onions with 3/4 teaspoon salt and 1/2 teaspoon pepper over moderate heat, stirring, until just wilted, about 2 minutes. Cover surface of onions with a round of parchment (or cover skillet with a tight-fitting lid) and continue to cook, lifting parchment to stir frequently, until onions are very soft and pale golden, about 20 minutes. Stir in additional flavours if needed, and then remove from heat and cool 10 minutes. Whisk together cream (or creme fraiche), eggs, nutmeg, remaining 1/2 teaspoon salt, and remaining 1/2 teaspoon pepper in a large bowl, then stir in onions.
Pour filling into tart shell, spreading onions evenly, and bake until filling is set and top is golden, 25 to 35 minutes. Serve warm or at room temperature.