From c28391658999517ccfc3b659f0f72a072c0ec5ea Mon Sep 17 00:00:00 2001 From: lbersch Date: Tue, 13 Feb 2018 13:50:18 +0100 Subject: [PATCH] Fix capital World in readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7d26086..172f082 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Inja is a template engine for modern C++, loosely inspired by [jinja](http://jin json data; data["name"] = "world"; -inja::render("Hello {{ name }}!", data); // "Hello World!" +inja::render("Hello {{ name }}!", data); // "Hello world!" ``` @@ -48,17 +48,17 @@ The basic template rendering takes a template as a `std::string` and a `json` ob json data; data["name"] = "world"; -render("Hello {{ name }}!", data); // "Hello World!" +render("Hello {{ name }}!", data); // "Hello world!" // For more advanced usage, an environment is recommended Environment env = Environment(); // Render a string with json data -std::string result = env.render("Hello {{ name }}!", data); +std::string result = env.render("Hello {{ name }}!", data); // "Hello world!" // Or directly read a template file Template temp = env.parse_template("./template.txt"); -std::string result = temp.render(data); // "Hello World!" +std::string result = temp.render(data); // "Hello world!" data["name"] = "Inja"; std::string result = temp.render(data); // "Hello Inja!"