mirror of
https://github.com/pantor/inja.git
synced 2026-02-17 09:03:58 +00:00
allow variables starting with $ and @
This commit is contained in:
@@ -161,6 +161,8 @@ TEST_CASE("functions") {
|
||||
CHECK(env.render("{{ exists(\"zipcode\") }}", data) == "false");
|
||||
CHECK(env.render("{{ exists(name) }}", data) == "false");
|
||||
CHECK(env.render("{{ exists(property) }}", data) == "true");
|
||||
|
||||
// CHECK(env.render("{{ exists(\"keywords\") and length(keywords) > 0 }}", data) == "false");
|
||||
}
|
||||
|
||||
SUBCASE("existsIn") {
|
||||
|
||||
Reference in New Issue
Block a user