Back to godoc.org

Package livejs

v0.0.0-...-42a2ac9
Latest Go to latest

The latest major version is .

Published: Aug 14, 2020 | License: MIT | Module: github.com/FooSoft/goldsmith-components

Overview

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

type LiveJs

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

LiveJs chainable context.

func New

func New() *LiveJs

New creates a new instance of the LiveJs plugin.

func (*LiveJs) Initialize

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

func (*LiveJs) Name

func (*LiveJs) Name() string

func (*LiveJs) Process

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier