Add FLAG::THIS in PHP builder.

This commit is contained in:
2022-12-09 19:56:49 +02:00
parent a0def8467b
commit 4abdd29709
+1 -1
View File
@@ -81,7 +81,7 @@ class Component_Builder {
$template = file_get_contents( $path ); $template = file_get_contents( $path );
$phpStr = LightnCandy::compile( $template, $phpStr = LightnCandy::compile( $template,
[ [
'flags' => Flags::FLAG_NOESCAPE | Flags::FLAG_PARENT | Flags::FLAG_SPVARS | Flags::FLAG_ELSE | Flags::FLAG_JSLENGTH | Flags::FLAG_JSTRUE, 'flags' => Flags::FLAG_NOESCAPE | Flags::FLAG_PARENT | Flags::FLAG_SPVARS | Flags::FLAG_ELSE | Flags::FLAG_JSLENGTH | Flags::FLAG_JSTRUE | Flags::FLAG_THIS,
'helpers' => $this->custom_handlebars ?? [], 'helpers' => $this->custom_handlebars ?? [],
] ]
); );