Skip to content

Commit

Permalink
Merge pull request #465 from aloussase/master
Browse files Browse the repository at this point in the history
overload template_t::render to accept context as an r-value
  • Loading branch information
The-EDev authored Jun 20, 2022
2 parents 5cdc2fc + 29d50e8 commit d7b3106
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/crow/mustache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit d7b3106

Please sign in to comment.