writer

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package writer provides the default build.Writer implementation capable of writing the site model to a filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx Context) *writer

New creates a new writer that renders the site model in the given filesystem instance to outputDir.

Types

type Context added in v0.4.1

type Context struct {
	Fs                 afero.Fs
	Path               string
	OutputDir          string
	Theme              string
	RecompileTemplates bool
}

Jump to

Keyboard shortcuts

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