Modularized templates