overload template_t::render to accept context as an r-value

This commit is contained in:
Alexander Goussas 2022-06-12 12:47:31 -05:00 committed by Farook Al-Sammarraie
parent 5cdc2fcc2b
commit 29d50e8df2

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
{