We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db791fc commit 674724cCopy full SHA for 674724c
src/frdl/Templater/SimpleDotNotationReplacer.php
@@ -8,7 +8,9 @@ class SimpleDotNotationReplacer extends Replacer
8
{
9
10
public function replace(Context $context, string $template) : string {
11
- return preg_replace_callback('/\{\{([\w\.^\{\}]+)\}\}/is', function($m) use ($context){
+ $context = $context->resolve();
12
+
13
+ return preg_replace_callback('/\{\{([\w\.^\{\}]+)\}\}/is', function($m) use ($context){
14
if($context->has($m[1])){
15
return $context->get($m[1]);
16
}else{
0 commit comments