Skip to content

Commit d7b3106

Browse files
authored
Merge pull request #465 from aloussase/master
overload template_t::render to accept context as an r-value
2 parents 5cdc2fc + 29d50e8 commit d7b3106

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/crow/mustache.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ namespace crow
379379
return rendered_template(ret);
380380
}
381381

382+
/// Apply the values from the context provided and output a returnable template from this mustache template
383+
rendered_template render(context&& ctx) const
384+
{
385+
return render(ctx);
386+
}
387+
382388
/// Output a returnable template from this mustache template
383389
std::string render_string() const
384390
{

0 commit comments

Comments
 (0)