Engine
class Engine
Templating engine Latte.
Constants
VERSION |
|
CONTENT_HTML |
Content types |
CONTENT_XHTML |
Content types |
CONTENT_XML |
Content types |
CONTENT_JS |
Content types |
CONTENT_CSS |
Content types |
CONTENT_ICAL |
Content types |
CONTENT_TEXT |
Content types |
Properties
callable[] | $onCompile |
Methods
No description
Renders template to output.
Renders template to string.
Creates template object.
Compiles template to PHP code.
Compiles template to cache.
No description
No description
Returns all run-time filters.
Call a run-time filter.
Adds new provider.
Returns all providers.
No description
Sets path to temporary directory.
Sets auto-refresh mode.
No description
Details
at line 57
__construct()
No description
at line 67
void
render($name, array $params = [], $block = null)
Renders template to output.
at line 78
string
renderToString($name, array $params = [], $block = null)
Renders template to string.
at line 89
Template
createTemplate($name, array $params = [])
Creates template object.
at line 103
string
compile($name)
Compiles template to PHP code.
at line 141
void
warmupCache($name)
Compiles template to cache.
at line 219
string
getCacheFile($name)
No description
at line 232
string
getTemplateClass($name)
No description
at line 245
Engine
addFilter($name, $callback)
Registers run-time filter.
at line 256
string[]
getFilters()
Returns all run-time filters.
at line 268
mixed
invokeFilter($name, array $args)
Call a run-time filter.
at line 289
Engine
addProvider($name, $value)
Adds new provider.
at line 300
array
getProviders()
Returns all providers.
at line 309
Engine
setContentType($type)
No description
at line 320
Engine
setTempDirectory($path)
Sets path to temporary directory.
at line 331
Engine
setAutoRefresh($on = true)
Sets auto-refresh mode.
at line 341
Parser
getParser()
No description
at line 353
Compiler
getCompiler()
No description
at line 377
ILoader
getLoader()
No description
Traits
Better OOP experience.