package diagrams

import "github.com/gohugoio/hugo/tpl/diagrams"

Index

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace provides template functions for the diagrams namespace.

func (*Namespace) Goat

func (d *Namespace) Goat(v any) SVGDiagram

type SVGDiagram

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

	// Width returns the width of the SVG.
	Width() int

	// Height returns the height of the SVG.
	Height() int
}

Source Files

diagrams.go init.go

Version
v0.108.0
Published
Dec 6, 2022
Platform
windows/amd64
Imports
8 packages
Last checked
1 hour ago

Tools for package owners.