abstract class Extension

Latte extension.

Methods

void
beforeCompile(Engine $engine)

Initializes before template is compiler.

array
getTags()

Returns a list of parsers for Latte tags.

array
getPasses()

Returns a list of parsers for Latte tags.

array
getFilters()

Returns a list of |filters.

array
getFunctions()

Returns a list of functions used in templates.

array
getProviders()

Returns a list of providers.

mixed
getCacheKey(Engine $engine)

Returns a value to distinguish multiple versions of the template.

void
beforeRender(Engine $engine)

Initializes before template is rendered.

static stdClass
order(callable $subject, array|string $before = [], array|string $after = [])

No description

Details

at line 21
void beforeCompile(Engine $engine)

Initializes before template is compiler.

Parameters

Engine $engine

Return Value

void

at line 30
array getTags()

Returns a list of parsers for Latte tags.

Return Value

array

at line 40
array getPasses()

Returns a list of parsers for Latte tags.

Return Value

array

at line 50
array getFilters()

Returns a list of |filters.

Return Value

array

at line 60
array getFunctions()

Returns a list of functions used in templates.

Return Value

array

at line 70
array getProviders()

Returns a list of providers.

Return Value

array

at line 79
mixed getCacheKey(Engine $engine)

Returns a value to distinguish multiple versions of the template.

Parameters

Engine $engine

Return Value

mixed

at line 88
void beforeRender(Engine $engine)

Initializes before template is rendered.

Parameters

Engine $engine

Return Value

void

at line 93
static stdClass order(callable $subject, array|string $before = [], array|string $after = [])

No description

Parameters

callable $subject
array|string $before
array|string $after

Return Value

stdClass