2022-02-24 18:09:07 -05:00
|
|
|
{{ $width := .Attributes.width }}
|
|
|
|
{{ $height := .Attributes.height }}
|
|
|
|
{{ $class := .Attributes.class | default "" }}
|
|
|
|
<div class="goat svg-container {{ $class }}">
|
2022-02-27 07:31:55 -05:00
|
|
|
{{ with diagrams.Goat .Inner }}
|
2022-02-24 18:09:07 -05:00
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
font-family="Menlo,Lucida Console,monospace"
|
|
|
|
{{ if or $width $height }}
|
|
|
|
{{ with $width }}width="{{ . }}"{{ end }}
|
|
|
|
{{ with $height }}height="{{ . }}"{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
viewBox="0 0 {{ .Width }} {{ .Height }}"
|
|
|
|
{{ end }}>
|
|
|
|
{{ .Body }}
|
|
|
|
</svg>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|