formats

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const Tag feature.Tag = "pages-formats"

Variables

This section is empty.

Functions

This section is empty.

Types

type CFeature

type CFeature struct {
	feature.CFeature
	// contains filtered or unexported fields
}

func (*CFeature) AddFormat

func (f *CFeature) AddFormat(formats ...feature.PageFormat) MakeFeature

func (*CFeature) Defaults

func (f *CFeature) Defaults() MakeFeature

func (*CFeature) GetFormat

func (f *CFeature) GetFormat(extn string) (format feature.PageFormat)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) ListFormats added in v0.1.0

func (f *CFeature) ListFormats() (names []string)

func (*CFeature) Make

func (f *CFeature) Make() Feature

func (*CFeature) MatchFormat

func (f *CFeature) MatchFormat(filename string) (format feature.PageFormat, match string)

func (*CFeature) PostStartup added in v0.5.11

func (f *CFeature) PostStartup(ctx *cli.Context) (err error)

func (*CFeature) Setup

func (f *CFeature) Setup(enjin feature.Internals)

type Feature

type Feature interface {
	feature.Feature
	feature.PageFormatProvider
}

type MakeFeature

type MakeFeature interface {
	Defaults() MakeFeature
	AddFormat(formats ...feature.PageFormat) MakeFeature

	Make() Feature
}

func New

func New() MakeFeature

func NewTagged added in v0.2.15

func NewTagged(tag feature.Tag) MakeFeature

Jump to

Keyboard shortcuts

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