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
void
render($name, array $params = array())
Renders template to output.
string
renderToString($name, array $params = array())
Renders template to string.
string
compile($name)
Compiles template to PHP code.
string
getCacheFile($name)
No description
callable[]
getFilters()
Returns all run-time filters.
mixed
invokeFilter($name, array $args)
Call a run-time filter.
setContentType($type)
No description
setTempDirectory($path)
Sets path to temporary directory.
setAutoRefresh($on = TRUE)
Sets auto-refresh mode.
getCompiler()
No description
Details
at line 91
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 198
string
getCacheFile($name)
No description
at line 222
Engine
addFilter($name, $callback)
Registers run-time filter.
at line 237
callable[]
getFilters()
Returns all run-time filters.
at line 249
mixed
invokeFilter($name, array $args)
Call a run-time filter.
at line 283
Engine
setContentType($type)
No description
at line 294
Engine
setTempDirectory($path)
Sets path to temporary directory.
at line 305
Engine
setAutoRefresh($on = TRUE)
Sets auto-refresh mode.
at line 315
Parser
getParser()
No description
at line 327
Compiler
getCompiler()
No description
at line 351
ILoader
getLoader()
No description