mrdocs::HandlebarsOptions::ignoreStandalone

Disables standalone tag removal when set to true

Synopsis

Declared in <mrdocs/Support/Handlebars.hpp>

bool ignoreStandalone = false;

Description

By default, Handlebars removes whitespace around block and partial expressions. For instance, the partial:

{.handlebars}
        A

and the template:

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

will render as:

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

because the whitespace up to the newline after the partial is removed.

A double newline is required to ensure that the whitespace is not removed. For instance, the template:

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

        </div>

will render as:

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

This can be disabled by setting this option to true.

When set, blocks and partials that are on their own line will not remove the whitespace on that line.

Created with MrDocs