LightnCandy option: FLAG_ERROR_SKIPPARTIAL

Skip 'partial not found' error or exception. Use this to align with mustache specification.

Sample Codes

Error when compile() and partial not found

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
));

Skip the error

Used option: FLAG_ERROR_EXCEPTION FLAG_ERROR_SKIPPARTIAL

Data:
NULL
Template:
OK{{> not_found}}!
Result:
OK!
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "OK{{> not_found}}!";

$php = LightnCandy::compile($template, array(
  "flags" => LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_ERROR_SKIPPARTIAL
));
$render = LightnCandy::prepare($php);
$data = NULL;
echo $render($data);