shortcode

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx *core.Context) (hook.Hook, error)

Types

type ShortcodeHook

type ShortcodeHook struct {
	hook.HookImpl
	// contains filtered or unexported fields
}

func (*ShortcodeHook) HandlePage

func (h *ShortcodeHook) HandlePage(page *content.Page) *content.Page

func (*ShortcodeHook) HandleTemplateSet

func (h *ShortcodeHook) HandleTemplateSet(set template.TemplateSet) (template.TemplateSet, error)

type ShortcodeSet

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

func NewShortcodeSet

func NewShortcodeSet(ctx *core.Context, tplset template.TemplateSet) (*ShortcodeSet, error)

func (*ShortcodeSet) Load

func (h *ShortcodeSet) Load() (map[string]template.Template, error)

func (*ShortcodeSet) Render

func (h *ShortcodeSet) Render(page *content.Page, content string) string

Jump to

Keyboard shortcuts

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