Merge pull request #826 from jmorganca/mxyng/template-system
show: no template system if empty
This commit is contained in:
commit
940e8ebec3
|
@ -951,7 +951,10 @@ func ShowModelfile(model *Model) (string, error) {
|
||||||
|
|
||||||
FROM {{ .From }}
|
FROM {{ .From }}
|
||||||
TEMPLATE """{{ .Template }}"""
|
TEMPLATE """{{ .Template }}"""
|
||||||
|
|
||||||
|
{{- if .System }}
|
||||||
SYSTEM """{{ .System }}"""
|
SYSTEM """{{ .System }}"""
|
||||||
|
{{- end }}
|
||||||
{{ .Params }}
|
{{ .Params }}
|
||||||
`
|
`
|
||||||
for _, l := range mt.Model.AdapterPaths {
|
for _, l := range mt.Model.AdapterPaths {
|
||||||
|
|
Loading…
Reference in a new issue