manipulations

package
v5.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package manipulations defines the interfaces all html doc manipulations must implement

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSSNamespace

func CSSNamespace(name string) string

Types

type AssetManager

type AssetManager interface {
	WithID(id string) map[assets.Type][]assetmanager.Asset
}

type Manipulator

type Manipulator func(runtime Runtime, doc *html.Node) error

type Runtime

type Runtime struct {
	Debug  bool
	Assets AssetManager
	Config *config.Config

	HasVimeo bool
	Vimeo    vimeoapiClient
	S3       *s3.Client
}

Jump to

Keyboard shortcuts

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