mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
overload template_t::render to accept context as an r-value
This commit is contained in:
parent
5cdc2fcc2b
commit
29d50e8df2
@ -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
Block a user