Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Engine = &LibraryEngine{}
View Source
var LibraryCache = xcore.NewXCache("library", 0, 0)
no limits, no timeout (it's part of the code itself) Will cache *Plugin objects
Functions ¶
This section is empty.
Types ¶
type LibraryEngine ¶
type LibraryEngine struct{}
func (*LibraryEngine) GetInstance ¶
func (re *LibraryEngine) GetInstance(Hostname string, PagesDir string, P string, i identity.Identity) assets.EngineInstance
func (*LibraryEngine) NeedInstance ¶
func (re *LibraryEngine) NeedInstance() bool
func (*LibraryEngine) Run ¶
func (se *LibraryEngine) Run(ctx *context.Context, s interface{}) interface{}
type LibraryEngineInstance ¶
func (*LibraryEngineInstance) NeedLanguage ¶
func (p *LibraryEngineInstance) NeedLanguage() bool
func (*LibraryEngineInstance) NeedTemplate ¶
func (p *LibraryEngineInstance) NeedTemplate() bool
func (*LibraryEngineInstance) Run ¶
func (p *LibraryEngineInstance) Run(ctx *context.Context, template *xcore.XTemplate, language *xcore.XLanguage, e interface{}) interface{}
context contains all the page context and history params are an array of strings (if page from outside) or a mapped array of data (inner pages)
Click to show internal directories.
Click to hide internal directories.