LightnCandy option: FLAG_NOESCAPE

Do not do any HTML escape on {{var}}. This option is same with handlbars.js noEscape option.

Sample Codes

The default behavior is escaping values.

Data:
array(
  "foo" => "Love & <b>Peace</b>"
)
Template:
{{foo}}
Result:
Love &amp; &lt;b&gt;Peace&lt;/b&gt;
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{foo}}";

$php = LightnCandy::compile($template);
$render = LightnCandy::prepare($php);
$data = array(
  "foo" => "Love & <b>Peace</b>"
);
echo $render($data);

Do not escaping values.

Used option: FLAG_NOESCAPE

Data:
array(
  "foo" => "Love & <b>Peace</b>"
)
Template:
{{foo}}
Result:
Love & <b>Peace</b>
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{foo}}";

$php = LightnCandy::compile($template, array(
  "flags" => LightnCandy::FLAG_NOESCAPE
));
$render = LightnCandy::prepare($php);
$data = array(
  "foo" => "Love & <b>Peace</b>"
);
echo $render($data);