A general template-based method for the preparation of nanomaterials | Synapse