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');
public compileElseIf (array $statement) Compiles a “elseif” statement returning PHP code
public string compileEcho (array $statement) Compiles a ‘{{‘ ‘}}’ statement returning PHP code
public compileDo (array $statement) Compiles a “do” statement returning PHP code
public string compileCall (array $statement, boolean $extendsMode) Compiles calls to macros
public compileCache (array $statement, [mixed $extendsMode]) Compiles a “cache” statement returning PHP code
public compileAutoEscape (array $statement, mixed $extendsMode) Compiles a “autoescape” statement returning PHP code
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();
public attributeReader (array $expr) Resolves attribute reading
public addFunction (mixed $name, mixed $definition) Register a new function in the compiler
Page 57 of 382