Class Socialveo\Core\library\view\VoltCompiler

InheritanceSocialveo\Core\library\view\VoltCompiler » Phalcon\Mvc\View\Engine\Volt\Compiler

Class VoltCompiler

Public Methods

Hide inherited methods

MethodDescriptionDefined By
compile() 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(); Socialveo\Core\library\view\VoltCompiler
compileInclude() Compiles a 'include' statement returning PHP code Socialveo\Core\library\view\VoltCompiler
realTemplatePath() Returns real template path Socialveo\Core\library\view\VoltCompiler

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
_compileSource() Compiles a Volt source code returning a PHP plain version Socialveo\Core\library\view\VoltCompiler

Property Details

$_subBlocks protected static property
protected static array $_subBlocks = []
$_subBlocksLocalTokens protected static property
protected static array $_subBlocksLocalTokens = []
$_subBlocksTokens protected static property
protected static array $_subBlocksTokens = []
$_viewsDomains protected static property
protected static array $_viewsDomains = []

Method Details

_compileSource() protected method

Compiles a Volt source code returning a PHP plain version

protected string _compileSource ( $viewCode, $extendsMode false )
$viewCode string
$extendsMode boolean
compile() public method

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 void compile ( $templatePath, $extendsMode false )
$templatePath string
$extendsMode boolean

[optional]

throws Exception
compileInclude() public method

Compiles a 'include' statement returning PHP code

public string compileInclude ( array $statement )
$statement array
realTemplatePath() public method

Returns real template path

public mixed|string realTemplatePath ( $templatePath, $showPathsInComments true )
$templatePath string
$showPathsInComments boolean

[optional]