tpl/diagrams: Rename the SVG accessor to Wrapped

Not perfect, but it gets it in line with the other .Inner/.Wrapped combos.
This commit is contained in:
Bjørn Erik Pedersen
2022-02-27 18:28:35 +01:00
parent 3ad39001df
commit fd0c1a5e9b
2 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ func TestCodeblocks(t *testing.T) {
tabWidth = 4
-- layouts/_default/_markup/render-codeblock-goat.html --
{{ $diagram := diagrams.Goat .Inner }}
Goat SVG:{{ substr $diagram.SVG 0 100 | safeHTML }} }}|
Goat SVG:{{ substr $diagram.Wrapped 0 100 | safeHTML }} }}|
Goat Attribute: {{ .Attributes.width}}|
-- layouts/_default/_markup/render-codeblock-go.html --
Go Code: {{ .Inner | safeHTML }}|