Documentation ¶
Index ¶
- Constants
- Variables
- func New() processor.Processor
- type Processor
- func (p *Processor) AddPage(folder, pagefile string) (m objx.Map, err error)
- func (p *Processor) CanRenderPage(_ model.Page) bool
- func (p *Processor) CreateBody(content []byte, pg model.Page) (*processor.Response, error)
- func (p *Processor) GetPageTemplate(name string) string
- func (p *Processor) HTMLTemplateName() string
- func (p *Processor) Name() string
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 ¶
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor struct for the processor
func (*Processor) CanRenderPage ¶
CanRenderPage all pages of the processor should be rendered
func (*Processor) CreateBody ¶
CreateBody creating ths body for this gallery page
func (*Processor) GetPageTemplate ¶
GetPageTemplate getting the right template for the named page
func (*Processor) HTMLTemplateName ¶
HTMLTemplateName returning the used html template
Click to show internal directories.
Click to hide internal directories.