mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
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:
@@ -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())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user