Mvc\View\Engine\Volt\Compiler::compileFile

public string | array compileFile (string $path, string $compiledPath, [boolean $extendsMode]) Compiles a template into a file forcing the destination path $compiler->compile('views/layouts/main.volt', 'views/layouts/main.volt.php');

Mvc\View\Engine\Volt\Compiler::compileElseIf

public compileElseIf (array $statement) Compiles a “elseif” statement returning PHP code

Mvc\View\Engine\Volt\Compiler::compileEcho

public string compileEcho (array $statement) Compiles a ‘{{‘ ‘}}’ statement returning PHP code

Mvc\View\Engine\Volt\Compiler::compileDo

public compileDo (array $statement) Compiles a “do” statement returning PHP code

Mvc\View\Engine\Volt\Compiler::compileCall

public string compileCall (array $statement, boolean $extendsMode) Compiles calls to macros

Mvc\View\Engine\Volt\Compiler::compileCache

public compileCache (array $statement, [mixed $extendsMode]) Compiles a “cache” statement returning PHP code

Mvc\View\Engine\Volt\Compiler::compileAutoEscape

public compileAutoEscape (array $statement, mixed $extendsMode) Compiles a “autoescape” statement returning PHP code

Mvc\View\Engine\Volt\Compiler::compile

public compile (mixed $templatePath, [mixed $extendsMode]) Compiles a template into a file applying the compiler options This method does not return the compiled path if the template was not compiled $compiler->compile('views/layouts/main.volt'); require $compiler->getCompiledTemplatePath();

Mvc\View\Engine\Volt\Compiler::attributeReader

public attributeReader (array $expr) Resolves attribute reading

Mvc\View\Engine\Volt\Compiler::addFunction

public addFunction (mixed $name, mixed $definition) Register a new function in the compiler