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 0dc5d2e commit 9379922Copy full SHA for 9379922
llvm/unittests/Support/MustacheTest.cpp
@@ -991,6 +991,16 @@ TEST(MustachePartials, PaddingWhitespace) {
991
EXPECT_EQ("|[]|", Out);
992
}
993
994
+TEST(MustachePartials, StandaloneIndentation) {
995
+ Value D = Object{{"content", "<\n->"}};
996
+ auto T = Template("\\\n {{>partial}}\n/\n");
997
+ T.registerPartial("partial", "|\n{{{content}}}\n|\n");
998
+ std::string Out;
999
+ raw_string_ostream OS(Out);
1000
+ T.render(D, OS);
1001
+ EXPECT_NE("\\\n |\n <\n ->\n |\n/\n", Out);
1002
+}
1003
+
1004
TEST(MustacheLambdas, BasicInterpolation) {
1005
Value D = Object{};
1006
auto T = Template("Hello, {{lambda}}!");
0 commit comments