TwigEngine
class TwigEngine extends EngineAbstract (View source)
Constants
HELPERS |
The helper lists |
Properties
protected string | $name | The engine name |
|
protected Loader | $config | The configuration loader |
from EngineAbstract |
Methods
mixed
render(string $filename, array $data = [])
Make template rendering
string
checkParseFile(string $filename, bool $extended = true)
Check the parsed file
from
EngineAbstract
void
Twig_Environment|Twig_Loader_Filesystem
getTemplate()
The get engine instance
Details
mixed
render(string $filename, array $data = [])
Make template rendering
protected string
checkParseFile(string $filename, bool $extended = true)
Check the parsed file
mixed
getName()
Get the engine name
void
__construct(Loader $config)
TwigEngine constructor.
Twig_Environment|Twig_Loader_Filesystem
getTemplate()
The get engine instance