block

package
v0.0.0-...-16d2632 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blocks map[string]Block

Blocks map["block_folder"]["style1", "style2" ...]

View Source
var RegisteredBlocks map[string]Block

Functions

func GetActiveBlocks

func GetActiveBlocks(forced bool) []string

GetBlock get a list of active block (by name)

Types

type Block

type Block interface {
	GetTemplatePath() string
	GetContent() map[string]string
	GetPosition() int
	GetBlockType() string
	//IsContentCacheable() bool
	//GetConfig() models.BlockConfig
	//Register()
	Init()
	Load(*models.Block) Block
	//SetConfig() bool
	//Activate()
	//Deactivate()
	IsActive() bool
}

Jump to

Keyboard shortcuts

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