Files
mautrix-telegram/pkg/gotd/cmd/rsagen/testdata/template.txt
T
2025-06-27 20:03:37 -07:00

26 lines
438 B
Plaintext

# Accepts custom templates
rsagen -format=false -templates good
stdout sentinel
! stderr .
# Parse error on invalid template
! rsagen -format=false -templates bad
! stdout .
stderr 'parse templates: '
# Accepts root template name
rsagen -format=false -templates root -exec root
stdout tutturu
! stderr .
-- good/main.tmpl --
sentinel
-- bad/main.tmpl --
{{ undefined }}
-- root/root.tmpl --
{{- define "root" -}}
tutturu
{{- end -}}