paths

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

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

Namespace defines the methods for paths to be used as template functions.

func New

func New(d *deps.Deps) *Namespace

Creates a new paths Namespace

func (*Namespace) API

func (ns *Namespace) API() string

API

Returns the API path of the project.

Example: {{ apiPath }}

func (*Namespace) Admin

func (ns *Namespace) Admin() string

Ad,om

Returns the admin path of the project.

Example: {{ adminPath }}

func (*Namespace) Assets

func (ns *Namespace) Assets() string

Assets

Returns the assets path of the theme.

Example: {{ uploadsPath }}

func (*Namespace) Base

func (ns *Namespace) Base() string

Base

Returns the base path of the project.

Example: {{ basePath }}

func (*Namespace) Layouts

func (ns *Namespace) Layouts() string

Layouts

Returns the directory where page layouts are stored.

Example: {{ layoutsPath }}

func (*Namespace) Storage

func (ns *Namespace) Storage() string

Storage

Returns the Storage path of the project.

Example: {{ storagePath }}

func (*Namespace) Templates

func (ns *Namespace) Templates() string

Templates

Returns the directory where page templates are stored.

Example: {{ templatesPath }}

func (*Namespace) Theme

func (ns *Namespace) Theme() string

Theme

Returns the Theme path of the project.

Example: {{ themePath }}

func (*Namespace) Uploads

func (ns *Namespace) Uploads() string

Uploads

Returns the Uploads path of the project.

Example: {{ uploadsPath }}

Jump to

Keyboard shortcuts

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