goldsmith-components: github.com/FooSoft/goldsmith-components/plugins/livejs Index | Files

package livejs

import "github.com/FooSoft/goldsmith-components/plugins/livejs"

Package livejs injects code to reload the current page when it (or its dependencies) are modified. This plugin is helpful for authoring web content locally, but should be disabled for site deployment. This can be achieved by conditionally including it using the "condition" filter.

Index

Package Files

livejs.go

type LiveJs Uses

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

LiveJs chainable context.

func New Uses

func New() *LiveJs

New creates a new instance of the LiveJs plugin.

func (*LiveJs) Initialize Uses

func (plugin *LiveJs) Initialize(context *goldsmith.Context) (goldsmith.Filter, error)

func (*LiveJs) Name Uses

func (*LiveJs) Name() string

func (*LiveJs) Process Uses

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

Package livejs imports 8 packages (graph) and is imported by 1 packages. Updated 2019-04-07. Refresh now. Tools for package owners.