update Template::template()