Files
hongming 4d88ed2ca1 update dependencies (#6519)
Signed-off-by: hongming <coder.scala@gmail.com>
2025-05-29 15:51:37 +08:00

57 lines
1.1 KiB
Cheetah

{{define "variable"}}{{.Name}} is a {{.Type}}
{{- end -}}
{{define "macro" -}}
{{.Name}} macro{{if .Description}} - {{range split .Description}}{{.}} {{end}}
{{end}}
{{range .Children}}{{range split .Description}} {{.}}
{{end}}
{{- end -}}
{{- end -}}
{{define "overload" -}}
{{if .Children}}{{range .Children}}{{range split .Description}} {{.}}
{{end}}
{{- end -}}
{{else}} {{.Signature}}
{{end}}
{{- end -}}
{{define "function" -}}
{{.Name}}{{if .Description}} - {{range split .Description}}{{.}} {{end}}
{{end}}
{{range .Children}}{{template "overload" .}}{{end}}
{{- end -}}
{{.Persona}}
{{.FormatRules}}
{{if or .Variables .Macros .Functions -}}
Only use the following variables, macros, and functions in expressions.
{{if .Variables}}
Variables:
{{range .Variables}}* {{template "variable" .}}
{{end -}}
{{end -}}
{{if .Macros}}
Macros:
{{range .Macros}}* {{template "macro" .}}
{{end -}}
{{end -}}
{{if .Functions}}
Functions:
{{range .Functions}}* {{template "function" .}}
{{end -}}
{{end -}}
{{- end -}}
{{.GeneralUsage}}
{{.UserPrompt}}