A universal approach for the synthesis of mesoporous gold, palladium and platinum films for applications in electrocatalysis