caterpillar

package
v0.0.0-...-c2c2e9c Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const AREA_CLASS = "ctpl_area"
View Source
const BLOCK_CLASS = "ctpl_block"
View Source
const CTPLR_TMPL = `` /* 2930-byte string literal not displayed */
View Source
const CTPLR_TMPL_REPL = `{{if .User}}{{template "CATERPILLAR" .}}{{end}}`
View Source
const DWAVE_END_REPL = `{{"}}"}}`
View Source
const DWAVE_START_REPL = `{{"{{"}}`
View Source
const LEAF_SUFFIX = ".leaf.html"
View Source
const MNG_ROOT_URL = "/caterpillar/static/mng/"
View Source
const STATIC_DIR = "static"

Variables

View Source
var (
	ErrPageAliasAlreadyExists = errors.New("caterpillar: Page alias already exists")
)

Functions

func Start

func Start()

Types

type Leaf

type Leaf struct {
	Name      string             `json:"name"`
	Alias     string             `json:"alias"`
	Template  *template.Template `json:"-"`
	Wormholes []*Wormhole        `json:"wormholes"`
}

type Wormhole

type Wormhole struct {
	Name   string       `json:"name"`
	Alias  string       `json:"alias"`
	Global bool         `json:"global"`
	Type   WormholeType `json:"type"`
}

type WormholeType

type WormholeType string
const (
	PROPERTY WormholeType = "PROPERTY"
	AREA     WormholeType = "AREA"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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