Documentation ¶
Index ¶
- Variables
- func MdToHTML(md []byte) []byte
- 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, _ model.Page) (*processor.Response, error)
- func (p *Processor) GetPageTemplate(name string) string
- func (p *Processor) HTMLTemplateName() string
- func (p *Processor) Name() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed templates/page.md PageMD string )
Page the page template
Functions ¶
Types ¶
type Processor ¶
type Processor struct { }
Processor markdown processor for converting a markdown file to html
func (*Processor) CanRenderPage ¶
CanRenderPage all pages of the processor should be rendered
func (*Processor) CreateBody ¶
CreateBody interface method to create a html body from a markdown file
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.