Support {{..}} or {{../foo}} in template. Otherwise, {{..}} or {{../foo}} will cause template error.
Error when compile {{..}}
Used option: FLAG_ERROR_LOG
NULLOKDo not support , you should do compile with LightnCandy::FLAG_PARENT flagrequire('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{../foo}}OK";
$php = LightnCandy::compile($template, array(
"flags" => LightnCandy::FLAG_ERROR_LOG
));
Enable handlebars.js extension {{..}}
Used option: FLAG_PARENT
NULLOKOKrequire('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{../foo}}OK";
$php = LightnCandy::compile($template, array(
"flags" => LightnCandy::FLAG_PARENT
));
$render = LightnCandy::prepare($php);
$data = NULL;
echo $render($data);