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