LightnCandy option: FLAG_SLASH

Skip a delimiter when it behind \ .

Sample Codes

The default behavior: \ do nothing

Data:
array(
  "foo" => "OK"
)
Template:
Yes, {{foo}} is \{{foo}}
Result:
Yes, OK is \OK
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "Yes, {{foo}} is \\{{foo}}";

$php = LightnCandy::compile($template);
$render = LightnCandy::prepare($php);
$data = array(
  "foo" => "OK"
);
echo $render($data);

You can use this way to display {{ when you do not like to use \

Data:
array(
  "foo" => "OK"
)
Template:
Show {{#with "{{"}}{{.}}{{/with}} in this way
Result:
Show {{ in this way
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "Show {{#with \"{{\"}}{{.}}{{/with}} in this way";

$php = LightnCandy::compile($template);
$render = LightnCandy::prepare($php);
$data = array(
  "foo" => "OK"
);
echo $render($data);

Use \ to escape a delimiter

Used option: FLAG_SLASH

Data:
array(
  "foo" => "OK"
)
Template:
Yes, {{foo}} is \{{foo}}
Result:
Yes, OK is {{foo}}
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "Yes, {{foo}} is \\{{foo}}";

$php = LightnCandy::compile($template, array(
  "flags" => LightnCandy::FLAG_SLASH
));
$render = LightnCandy::prepare($php);
$data = array(
  "foo" => "OK"
);
echo $render($data);