The first known published cupcake recipe appeared in a cookbook in 1828, but it didn't call them "cupcakes." They were simply called "cup cakes."
elaborate
Royal icing, commonly used in cookie decorating, can be made stiff enough to hold its shape in intricate designs, but it will also eventually dry hard enough to be used as a *structural element* in elaborate cookie creations.
elaborate