ext

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: BSD-1-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoHTMLExtension

type GoHTMLExtension struct {
	extensions.Base
	HTML func(r *request.Request) *gohtml.Element
}

func NewGoHTMLExtension

func NewGoHTMLExtension(name string, callback func(r *request.Request) map[string]any, html func(r *request.Request) *gohtml.Element) *GoHTMLExtension

func (*GoHTMLExtension) Name

func (s *GoHTMLExtension) Name() string

Returns the name of the extension.

func (*GoHTMLExtension) String

func (s *GoHTMLExtension) String(r *request.Request) string

func (*GoHTMLExtension) View

func (s *GoHTMLExtension) View(r *request.Request) map[string]any

Returns the template data for the extension.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL