Merge pull request #465 from aloussase/master

overload template_t::render to accept context as an r-value
This commit is contained in:
Farook Al-Sammarraie 2022-06-20 14:10:08 +03:00 committed by GitHub
commit d7b3106120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -379,6 +379,12 @@ namespace crow
return rendered_template(ret);
}
/// Apply the values from the context provided and output a returnable template from this mustache template
rendered_template render(context&& ctx) const
{
return render(ctx);
}
/// Output a returnable template from this mustache template
std::string render_string() const
{