Unverified Commit 940e8ebe authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #826 from jmorganca/mxyng/template-system

show: no template system if empty
parents 565648f3 ee4979e5
...@@ -951,7 +951,10 @@ func ShowModelfile(model *Model) (string, error) { ...@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment