mrdocs::Handlebars::render_to

Render a handlebars template

Synopses

void
render_to(
    OutputRef& out,
    std::string_view templateText) const;
void
render_to(
    OutputRef& out,
    std::string_view templateText,
    dom::Value const& context) const;

Render a handlebars template

void
render_to(
    OutputRef& out,
    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