ntemplate

package
v4.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager(mgr driver.Manager, pa PathAliases) driver.Manager

Types

type PathAliases

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

func NewPathAliases added in v4.2.4

func NewPathAliases() *PathAliases

func (*PathAliases) Add

func (p *PathAliases) Add(alias, absPath string) *PathAliases

func (*PathAliases) AddAllSubdir added in v4.2.4

func (p *PathAliases) AddAllSubdir(absPath string) error

func (*PathAliases) Aliases added in v4.2.4

func (p *PathAliases) Aliases() []string

func (*PathAliases) Parse

func (p *PathAliases) Parse(withAliasTagPath string) string

func (*PathAliases) ParseOk

func (p *PathAliases) ParseOk(withAliasTagPath string) (string, bool)

func (*PathAliases) ParsePrefix

func (p *PathAliases) ParsePrefix(withAliasPrefixPath string) string

func (*PathAliases) ParsePrefixOk

func (p *PathAliases) ParsePrefixOk(withAliasPrefixPath string) (string, bool)

func (*PathAliases) Range added in v4.2.4

func (p *PathAliases) Range(fn func(string, string) error) (err error)

func (*PathAliases) Restore

func (p *PathAliases) Restore(fullpath string) string

func (*PathAliases) RestoreOk

func (p *PathAliases) RestoreOk(fullpath string) (string, bool)

func (*PathAliases) RestorePrefix

func (p *PathAliases) RestorePrefix(fullpath string) string

func (*PathAliases) RestorePrefixOk

func (p *PathAliases) RestorePrefixOk(fullpath string) (string, bool)

func (*PathAliases) TmplDirs added in v4.2.4

func (p *PathAliases) TmplDirs() []string

Jump to

Keyboard shortcuts

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