The format of application for a visit to a temple is written here. You can follow this format to apply leave.