create-prisma-php-app 2.2.19 → 2.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -212,16 +212,10 @@ class TemplateCompiler
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
foreach ($node->attributes as $attr) {
|
|
215
|
-
if (
|
|
216
|
-
$
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
return $matches[0];
|
|
220
|
-
},
|
|
221
|
-
$attr->value
|
|
222
|
-
);
|
|
223
|
-
$node->setAttribute($attr->name, $newValue);
|
|
224
|
-
$node->setAttribute("pp-bind-{$attr->name}", "1");
|
|
215
|
+
if (preg_match('/{{\s*(.+?)\s*}}/u', $attr->value, $m)) {
|
|
216
|
+
$expr = $m[1];
|
|
217
|
+
$node->setAttribute($attr->name, $attr->value);
|
|
218
|
+
$node->setAttribute("pp-bind-{$attr->name}", $expr);
|
|
225
219
|
}
|
|
226
220
|
}
|
|
227
221
|
|