tpl: Use consistent delimiter spacing in examples

This commit is contained in:
Joe Mooring 2022-11-24 21:24:18 -08:00 committed by Bjørn Erik Pedersen
parent 75f782a5a7
commit b8d5c378ba
6 changed files with 41 additions and 41 deletions

View file

@ -32,9 +32,9 @@ func init() {
ns.AddMethodMapping(ctx.Dump,
nil,
[][2]string{
{`{{- $m := newScratch -}}
{{- $m.Set "Hugo" "Rocks!" -}}
{{- $m.Values | debug.Dump | safeHTML -}}`, "map[string]interface {}{\n \"Hugo\": \"Rocks!\",\n}"},
{`{{ $m := newScratch }}
{{ $m.Set "Hugo" "Rocks!" }}
{{ $m.Values | debug.Dump | safeHTML }}`, "map[string]interface {}{\n \"Hugo\": \"Rocks!\",\n}"},
},
)