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

@@ -25,13 +25,13 @@ import (
)
type SVGDiagram interface {
// Wrapped returns the diagram as an SVG, including the <svg> container.
Wrapped() template.HTML
// Inner returns the inner markup of the SVG.
// This allows for the <svg> container to be created manually.
Inner() template.HTML
// SVG returns the diagram as an SVG, including the <svg> container.
SVG() template.HTML
// Width returns the width of the SVG.
Width() int
@@ -47,7 +47,7 @@ func (d goatDiagram) Inner() template.HTML {
return template.HTML(d.d.Body)
}
func (d goatDiagram) SVG() template.HTML {
func (d goatDiagram) Wrapped() template.HTML {
return template.HTML(d.d.String())
}