mrdocs::HandlebarsOptions::preventIndent

Disable the auto‐indent feature

Synopsis

Declared in <mrdocs/Support/Handlebars.hpp>

bool preventIndent = false;

Description

By default, an indented partial‐call causes the output of the whole partial being indented by the same amount.

For instance, the partial:

{.handlebars}
        A
        B
        C

and the template:

{.handlebars}
        <div>
            {{> partial}}
        </div>

will render as:

{.html}
        <div>
            A
            B
            C
        </div>

because the partial is indented by the same amount as the partial call.

This can be disabled by setting this option to true. In this case, the partial above would be rendered as:

{.html}
        <div>
            A
        B
        C
        </div>

Created with MrDocs