We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8436d7c commit 03d2eb9Copy full SHA for 03d2eb9
Mustachio.Tests/TemplateFixture.cs
@@ -105,5 +105,22 @@ public void TemplateRendersWithComplextEachPath()
105
"<li>name 1 and version 1 and has a CEO: Smith</li>" +
106
"<li>name 2 and version 2 and has a CEO: Smith</li>", result);
107
}
108
+
109
+ [Fact]
110
+ public void TemplateShouldProcessVariablesInInvertedGroup()
111
+ {
112
+ var model = new Dictionary<String, object>
113
114
+ { "not_here" , false },
115
+ { "placeholder" , "a placeholder value" }
116
+ };
117
118
+ var template = "{{^not_here}}{{../placeholder}}{{/not_here}}";
119
120
+ var result = Parser.Parse(template)(model);
121
122
+ Assert.Equal("a placeholder value", result);
123
124
+ }
125
126
0 commit comments