| 1 |
{{define "variable"}}{{.Name}} is a {{.Type}}{{if .Description}} |
| 2 |
|
| 3 |
{{range split .Description}} {{.}} |
| 4 |
{{end}} |
| 5 |
{{- end -}} |
| 6 |
{{- end -}} |
| 7 |
|
| 8 |
{{define "macro" -}} |
| 9 |
{{.Name}} macro{{if .Description}} - {{range split .Description}}{{.}} {{end}} |
| 10 |
{{end}} |
| 11 |
{{range .Children}}{{range split .Description}} {{.}} |
| 12 |
{{end}} |
| 13 |
{{- end -}} |
| 14 |
{{- end -}} |
| 15 |
|
| 16 |
{{define "overload" -}} |
| 17 |
{{if .Children}}{{range .Children}}{{range split .Description}} {{.}} |
| 18 |
{{end}} |
| 19 |
{{- end -}} |
| 20 |
{{else}} {{.Signature}} |
| 21 |
{{end}} |
| 22 |
{{- end -}} |
| 23 |
|
| 24 |
{{define "function" -}} |
| 25 |
{{.Name}}{{if .Description}} - {{range split .Description}}{{.}} {{end}} |
| 26 |
{{end}} |
| 27 |
{{range .Children}}{{template "overload" .}}{{end}} |
| 28 |
{{- end -}} |
| 29 |
|
| 30 |
{{.Persona}} |
| 31 |
|
| 32 |
{{.FormatRules}} |
| 33 |
|
| 34 |
{{if or .Variables .Macros .Functions -}} |
| 35 |
Only use the following variables, macros, and functions in expressions. |
| 36 |
{{if .Variables}} |
| 37 |
Variables: |
| 38 |
|
| 39 |
{{range .Variables}}* {{template "variable" .}} |
| 40 |
{{end -}} |
| 41 |
|
| 42 |
{{end -}} |
| 43 |
{{if .Macros}} |
| 44 |
Macros: |
| 45 |
|
| 46 |
{{range .Macros}}* {{template "macro" .}} |
| 47 |
{{end -}} |
| 48 |
|
| 49 |
{{end -}} |
| 50 |
{{if .Functions}} |
| 51 |
Functions: |
| 52 |
|
| 53 |
{{range .Functions}}* {{template "function" .}} |
| 54 |
{{end -}} |
| 55 |
|
| 56 |
{{end -}} |
| 57 |
{{- end -}} |
| 58 |
{{.GeneralUsage}} |
| 59 |
|
| 60 |
{{.UserPrompt}} |