Update template.go

We can specify "TemplateLeft" and "TemplateRight" but they did not work as these two changes are required.