language

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL