mirror of
https://github.com/pantor/inja.git
synced 2026-10-07 04:47:16 +00:00
make renderer private in env
This commit is contained in:
1 parent
e522903440
commit
2ae161b4bd
2 files changed
+3
-5
No files matched your search
@@ -241,11 +241,11 @@ TEST_CASE("templates") {
|
||||
data["city"] = "Brunswick";
|
||||
data["is_happy"] = true;
|
||||
|
||||
CHECK( env.renderer.render(temp, data) == "Peter" );
|
||||
CHECK( env.render_template(temp, data) == "Peter" );
|
||||
|
||||
data["is_happy"] = false;
|
||||
|
||||
CHECK( env.renderer.render(temp, data) == "Brunswick" );
|
||||
CHECK( env.render_template(temp, data) == "Brunswick" );
|
||||
}
|
||||
|
||||
TEST_CASE("other-syntax") {
|
||||
|
||||
Reference in new issue
Block a user