Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/mrdocs/Support/Handlebars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,9 @@ class Handlebars {
std::string
render(std::string_view templateText) const
{
dom::Object const& context = {};
auto exp = try_render(templateText, context, {});
dom::Value emptyContext(dom::Object{});
HandlebarsOptions defaultOptions;
auto exp = try_render(templateText, emptyContext, defaultOptions);
if (!exp)
{
throw exp.error();
Expand Down
Loading
Loading