mirror of https://github.com/CrowCpp/Crow.git
Merge pull request #465 from aloussase/master
overload template_t::render to accept context as an r-value
This commit is contained in:
commit
d7b3106120
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue