From e55d18efe51014361831ef3cb63d0488681f5810 Mon Sep 17 00:00:00 2001 From: Murad Biashimov Date: Thu, 15 Sep 2022 14:20:28 +0200 Subject: [PATCH] fix: #9 do not print functions, use them directly Printing tags just renders them as a string. --- internal/provider/template.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/provider/template.go b/internal/provider/template.go index 96006e31..6733541b 100644 --- a/internal/provider/template.go +++ b/internal/provider/template.go @@ -229,7 +229,7 @@ description: |- {{ if .HasExample -}} ## Example Usage -{{ printf "{{tffile %q}}" .ExampleFile }} +{{ tffile .ExampleFile }} {{- end }} {{ .SchemaMarkdown | trimspace }} @@ -239,7 +239,7 @@ description: |- Import is supported using the following syntax: -{{ printf "{{codefile \"shell\" %q}}" .ImportFile }} +{{ codefile "shell %q" .ImportFile }} {{- end }} ` @@ -258,7 +258,7 @@ description: |- {{ if .HasExample -}} ## Example Usage -{{ printf "{{tffile %q}}" .ExampleFile }} +{{ tffile .ExampleFile }} {{- end }} {{ .SchemaMarkdown | trimspace }}