Write code similar to vx_file_tmpl_gen() from VxUtil.pm that populates the specified template with information in the specified map structure.