wajafapp

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Engine = &LibraryEngine{}
func init() {
	LibraryCache.Validator = utils.FileValidator
}
View Source
var LibraryCache = xcore.NewXCache("wajafapp", 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

type LibraryEngineInstance struct {
	SourcePath string
	PluginPath string
}

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)

Jump to

Keyboard shortcuts

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