Engine
class Engine extends Object
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_URL |
Content types |
CONTENT_ICAL |
Content types |
CONTENT_TEXT |
Content types |
Properties
callable[] | $onCompile |
Methods
Renders template to output.
Renders template to string.
Compiles template to PHP code.
Compiles template to cache.
No description
No description
Returns all run-time filters.
Call a run-time filter.
No description
Sets path to temporary directory.
Sets auto-refresh mode.
No description
Details
at line 86
void
render($name, array $params = array())
Renders template to output.
at line 102
string
renderToString($name, array $params = array())
Renders template to string.
at line 122
string
compile($name)
Compiles template to PHP code.
at line 160
void
warmupCache($name)
Compiles template to cache.
at line 233
string
getCacheFile($name)
No description
at line 246
string
getTemplateClass($name)
No description
at line 258
Engine
addFilter($name, $callback)
Registers run-time filter.
at line 273
callable[]
getFilters()
Returns all run-time filters.
at line 285
mixed
invokeFilter($name, array $args)
Call a run-time filter.
at line 320
Engine
setContentType($type)
No description
at line 331
Engine
setTempDirectory($path)
Sets path to temporary directory.
at line 342
Engine
setAutoRefresh($on = TRUE)
Sets auto-refresh mode.
at line 352
Parser
getParser()
No description
at line 364
Compiler
getCompiler()
No description
at line 388
ILoader
getLoader()
No description