I want simple C++ string based template library to replace strings at runtime.
For example, I will use
string template = \"My name is {{name}}\"; >
For whom is still looking for such a library I have created a little one https://github.com/lexxmark/string_template.
stpl::string_template st("Hello {{name}}!"); st.set_arg("name", "World"); auto r = st.render(); EXPECT(r, "Hello World!");
It also has some nice customizations.