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) Initialize

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

        func (*Document) Name

        func (*Document) Name() string

        func (*Document) Process

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

        type Processor

        type Processor func(*goquery.Document) error

          Processor callback function to modify documents.

          Source Files