LightnCandy option: FLAG_ERROR_LOG

Print error log to stderr when template error.

Sample Codes

Used option: FLAG_ERROR_LOG

Data:
NULL
Template:
{{../foo}}}OK
Result:
Bad token {{../foo}}} ! Do you mean {{../foo}} or {{{../foo}}}?
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{../foo}}}OK";

$php = LightnCandy::compile($template, array(
  "flags" => LightnCandy::FLAG_ERROR_LOG
));

Used option: FLAG_ERROR_LOG

Data:
NULL
Template:
{{> not_found}}
Result:
Can not find partial for 'not_found', you should provide partials or partialresolver in options
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{> not_found}}";

$php = LightnCandy::compile($template, array(
  "flags" => LightnCandy::FLAG_ERROR_LOG
));