Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnjinError ¶
func NewEnjinError ¶
func NewEnjinError(title, summary, content string) *EnjinError
func (*EnjinError) Html ¶
func (e *EnjinError) Html() (html template.HTML)
func (*EnjinError) NjnData ¶
func (e *EnjinError) NjnData() (data map[string]interface{})
type Format ¶
type Format interface {
This() interface{}
Name() (name string)
Label() (label string)
Extensions() (extensions []string)
Prepare(ctx context.Context, content string) (out context.Context, err error)
Process(ctx context.Context, t Theme, content string) (html template.HTML, redirect string, err *EnjinError)
IndexDocument(pg interface{}) (doc interface{}, err error)
NewDocumentMapping(tag language.Tag) (doctype, analyzer string, dm *mapping.DocumentMapping)
}
type FormatProvider ¶
type Theme ¶
type Theme interface {
FS() fs.FileSystem
GetParentTheme() (parent Theme)
GetBlockThemeNames() (names []string)
NewTextTemplateWithContext(name string, ctx context.Context) (tmpl *textTemplate.Template, err error)
NewTextFuncMapWithContext(ctx context.Context) (fm textTemplate.FuncMap)
NewHtmlTemplateWithContext(name string, ctx context.Context) (tmpl *htmlTemplate.Template, err error)
NewHtmlFuncMapWithContext(ctx context.Context) (fm htmlTemplate.FuncMap)
}
Click to show internal directories.
Click to hide internal directories.