document

package
Version: v0.0.0-...-c35ca9c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package document enables simple HTML modification via callback via "goquery", an API similar to "jquery". This plugin is particularly useful adding classes to elements and performing other cleanup tasks which are too case-specific to warrant the creation of a new plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

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

Document plugin context.

func New

func New(callback Processor) *Document

New creates a new instance of the Document plugin.

func (*Document) Finalize

func (self *Document) Finalize(context *goldsmith.Context) error

func (*Document) Initialize

func (*Document) Initialize(context *goldsmith.Context) error

func (*Document) Name

func (*Document) Name() string

func (*Document) Process

func (self *Document) Process(context *goldsmith.Context, inputFile *goldsmith.File) error

type Processor

type Processor func(*goldsmith.File, *goquery.Document) error

Processor callback function to modify documents.

Source Files

Jump to

Keyboard shortcuts

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