mrdocs::isEmpty

Determine if a value is empty

Synopsis

Declared in <mrdocs/Support/Handlebars.hpp>

bool
isEmpty(dom::Value const& arg);

Description

This is used by the built‐in if and with helpers to control their execution flow.

The Handlebars definition of empty is any of:

‐ Array with length 0 ‐ falsy values other than 0

This is intended to match the Mustache Behaviour.

Return Value

True if the value is empty, false otherwise

Parameters

Name

Description

arg

The value to test

See Also

https://mustache.github.io/mustache.5.html#Sections

Created with MrDocs