gallery

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageEntry = "" /* 249-byte string literal not displayed */
	ImageTag   = "<br/>%[1]s: {{.%[1]s}}"
)

Variables

View Source
var (
	//go:embed templates/page.md
	GalleryPage string
	//go:embed templates/style.css
	GalleryStyle string
	//go:embed templates/style_fluid.css
	GalleryFluidStyle string
)

Page the page template

Functions

func New

func New() processor.Processor

New creating a new gallery processor

Types

type Processor

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

Processor struct for the processor

func (*Processor) AddPage

func (p *Processor) AddPage(folder, pagefile string) (m objx.Map, err error)

AddPage adding the new page

func (*Processor) CanRenderPage

func (p *Processor) CanRenderPage(_ model.Page) bool

CanRenderPage all pages of the processor should be rendered

func (*Processor) CreateBody

func (p *Processor) CreateBody(content []byte, pg model.Page) (*processor.Response, error)

CreateBody creating ths body for this gallery page

func (*Processor) GetPageTemplate

func (p *Processor) GetPageTemplate(name string) string

GetPageTemplate getting the right template for the named page

func (*Processor) HTMLTemplateName

func (p *Processor) HTMLTemplateName() string

HTMLTemplateName returning the used html template

func (*Processor) Name

func (p *Processor) Name() string

Name returning the name of this processor

Jump to

Keyboard shortcuts

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