Unverified Commit 627d04d9 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #827 from jmorganca/mxyng/template-adapters

model: native gotemplate adapter template
parents 940e8ebe 8299bf76
...@@ -955,11 +955,12 @@ TEMPLATE """{{ .Template }}""" ...@@ -955,11 +955,12 @@ TEMPLATE """{{ .Template }}"""
{{- if .System }} {{- if .System }}
SYSTEM """{{ .System }}""" SYSTEM """{{ .System }}"""
{{- end }} {{- end }}
{{- range $adapter := .AdapterPaths }}
ADAPTER {{ $adapter }}
{{- end }}
{{ .Params }} {{ .Params }}
` `
for _, l := range mt.Model.AdapterPaths {
modelFile += fmt.Sprintf("ADAPTER %s\n", l)
}
tmpl, err := template.New("").Parse(modelFile) tmpl, err := template.New("").Parse(modelFile)
if err != nil { if err != nil {
......
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