Merge pull request #827 from jmorganca/mxyng/template-adapters
model: native gotemplate adapter template
This commit is contained in:
commit
627d04d927
1 changed files with 4 additions and 3 deletions
|
@ -955,11 +955,12 @@ TEMPLATE """{{ .Template }}"""
|
|||
{{- if .System }}
|
||||
SYSTEM """{{ .System }}"""
|
||||
{{- end }}
|
||||
|
||||
{{- range $adapter := .AdapterPaths }}
|
||||
ADAPTER {{ $adapter }}
|
||||
{{- end }}
|
||||
{{ .Params }}
|
||||
`
|
||||
for _, l := range mt.Model.AdapterPaths {
|
||||
modelFile += fmt.Sprintf("ADAPTER %s\n", l)
|
||||
}
|
||||
|
||||
tmpl, err := template.New("").Parse(modelFile)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue