mrdocs::Handlebars::try_render
Render a handlebars template
Synopses
Declared in <mrdocs/Support/Handlebars.hpp>
Expected<std::string, HandlebarsError>
try_render(std::string_view templateText) const;
Expected<std::string, HandlebarsError>
try_render(
std::string_view templateText,
dom::Value const& context) const;
Render a handlebars template
Expected<std::string, HandlebarsError>
try_render(
std::string_view templateText,
dom::Value const& context,
HandlebarsOptions const& options) const;
Parameters
| Name | Description |
|---|---|
templateText |
The handlebars template text |
context |
The data to render |
options |
The options to use |
Created with MrDocs