module

package
v0.0.0-...-f0d32e8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ComponentFolderArchetypes = "archetypes"
	ComponentFolderStatic     = "static"
	ComponentFolderLayouts    = "layouts"
	ComponentFolderContent    = "content"
	ComponentFolderData       = "data"
	ComponentFolderAssets     = "assets"
	ComponentFolderI18n       = "i18n"

	FolderResources = "resources"
)

Module folder structure

Variables

Functions

This section is empty.

Types

type Component

type Component interface {
	Name() string
	Dir() string
	Language() string
}

type LoadInfo

type LoadInfo interface {
	Workspace
	Paths
}

type Module

type Module interface {
	Owner() Module
	Mounts() []Mount
	Dir() string
}

type Modules

type Modules interface {
	Proj() Module
	All() []Module
}

type Mount

type Mount interface {
	Source() string
	Target() string
	Lang() string
}

type Paths

type Paths interface {
	ImportPaths() []string
	GetImports(moduleDir string) ([]string, error)
}

type Workspace

type Workspace interface {
	Fs() afero.Fs
	WorkingDir() string
	ThemesDir() string
	GetDefaultDirs(names []string) ([]Component, error)
	GetOtherLanguagesContentDirs(name string) ([]Component, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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