mirror of
https://github.com/pantor/inja.git
synced 2026-03-16 22:15:59 +00:00
This commit is contained in:
committed by
GitHub
parent
b3d0e06a95
commit
ea845eee91
@@ -154,6 +154,12 @@ Yeah!
|
||||
data) == R""""(Yeah!
|
||||
)"""");
|
||||
}
|
||||
|
||||
SUBCASE("pipe syntax") {
|
||||
CHECK(env.render("{{ brother.name | upper }}", data) == "CHRIS");
|
||||
CHECK(env.render("{{ brother.name | upper | lower }}", data) == "chris");
|
||||
CHECK(env.render("{{ [\"C\", \"A\", \"B\"] | sort | join(\",\") }}", data) == "A,B,C");
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("templates") {
|
||||
|
||||
Reference in New Issue
Block a user