{{ define "vehicle-features" }} {{- if or .basefeatures (eq .coarsecurrent "true") (eq .welcomecharge "true") (eq .streaming "true") (eq .climaterdisabled "true") (eq .autodetectdisabled "true") }} features: {{- range .basefeatures }} - {{ . }} {{- end }} {{- if eq .coarsecurrent "true" }} - coarsecurrent {{- end }} {{- if eq .welcomecharge "true" }} - welcomecharge {{- end }} {{- if eq .streaming "true" }} - streaming {{- end }} {{- if eq .climaterdisabled "true" }} - climaterdisabled {{- end }} {{- if eq .autodetectdisabled "true" }} - autodetectdisabled {{- end }} {{- end }} {{- end }}