mrdocs::Handlebars::render

Render a handlebars template

Synopses

Declared in <mrdocs/Support/Handlebars.hpp>

std::string
render(std::string_view templateText) const;
std::string
render(
    std::string_view templateText,
    dom::Value const& context) const;

Render a handlebars template

std::string
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