Throw exception when template error.
Used option: FLAG_ERROR_EXCEPTION
NULL
}OK
Command failed: php .exec_tmp_file 2>null
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{../foo}}}OK";
$php = LightnCandy::compile($template, array(
"flags" => LightnCandy::FLAG_ERROR_EXCEPTION
));
Used option: FLAG_ERROR_EXCEPTION
NULL
Command failed: php .exec_tmp_file 2>null
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{> not_found}}";
$php = LightnCandy::compile($template, array(
"flags" => LightnCandy::FLAG_ERROR_EXCEPTION
));