block

package
v0.0.0-...-1f40810 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetCategoryArgs = reload.BuildValFnWithAnyParams("block-category-args", categoryArgs)
View Source
var GetCategoryAttr = reload.BuildValFn("block-category-attr", parseAttr)
View Source
var GetCategoryConf = reload.BuildValFnWithConfirm("block-category-conf", categoryConfFn, 5)

Functions

func Category

func Category(h *wp.Handle, id string, blockParser ParserBlock) (func() string, error)

Types

type Block

type Block struct {
	Name        string
	Attrs       string
	Len         int
	StartOffset int
	Type        string
}

type BockParser

type BockParser struct {
	Document string
	Offset   int
	Output   []ParserBlock
}

func ParseBlock

func ParseBlock(content string) (r BockParser)

type ParserBlock

type ParserBlock struct {
	Name         string
	Attrs        string
	InnerBlocks  string
	InnerHtml    string
	InnerContent string
}

Jump to

Keyboard shortcuts

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