Add ## to generate.template