easypage

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts httpx.BuilderOptions) (httpx.Adapter, error)

Types

type BuildContext

type BuildContext struct {
	Data    map[string]any
	Current string
	Type    string
}

type EasyPage

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

func (*EasyPage) Close

func (e *EasyPage) Close() error

func (*EasyPage) Handle

func (e *EasyPage) Handle(ctx httpx.Context)

func (*EasyPage) PreformEditorAction

func (e *EasyPage) PreformEditorAction(ctx httpx.AdapterEditorContext) (any, error)

func (*EasyPage) ServeEditorFile

func (e *EasyPage) ServeEditorFile(file string) ([]byte, error)

type EasyPageBuilder

type EasyPageBuilder struct {
	Pages map[string]*Page
	// contains filtered or unexported fields
}

func (EasyPageBuilder) Build

func (eb EasyPageBuilder) Build() error

type Page

type Page struct {
	Name     string `json:"name,omitempty"`
	Slug     string `json:"slug,omitempty"`
	Type     string `json:"type,omitempty"`
	Data     string `json:"data,omitempty"`
	Template string `json:"template,omitempty"`
}

Jump to

Keyboard shortcuts

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