Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Engine = &LanguageEngine{}
View Source
var LanguageCache = xcore.NewXCache("language", 0, 3600*time.Second)
Functions ¶
This section is empty.
Types ¶
type LanguageEngine ¶
type LanguageEngine struct{}
func (*LanguageEngine) GetInstance ¶
func (re *LanguageEngine) GetInstance(Hostname string, PagesDir string, P string, i identity.Identity) assets.EngineInstance
func (*LanguageEngine) NeedInstance ¶
func (re *LanguageEngine) NeedInstance() bool
func (*LanguageEngine) Run ¶
func (se *LanguageEngine) Run(ctx *context.Context, s interface{}) interface{}
type LanguageEngineInstance ¶
type LanguageEngineInstance struct {
FilePath string
}
func (*LanguageEngineInstance) NeedLanguage ¶
func (p *LanguageEngineInstance) NeedLanguage() bool
func (*LanguageEngineInstance) NeedTemplate ¶
func (p *LanguageEngineInstance) NeedTemplate() bool
func (*LanguageEngineInstance) Run ¶
func (p *LanguageEngineInstance) 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.