I have a template as follows:
prop1=val1 prop2=val2 {{ if eq .Type "type1" -}} prop3=val3 prop4=val4 {{- end }} prop5=val5 prop6=val6