[#96] clear the template cache before generation, to make the modification to templates take effect