Recent searches

in

remove_empty_root_boundary

On this page

This key toggles whether CloudCannon will remove root boundary tokens from the source code when a key-value segment is empty.

Setting this key to true will remove root boundary tokens when the segment is empty.

By default, this key is false (i.e., root boundary tokens are not removed when segments are empty).

Appears in#

└── Snippet Format
    └── remove_empty_root_boundary

Type#

boolean

Examples#

In this example, we have configured snippet format to remove empty root boundaries from source code.

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[param]]>>
    params:
      param:
        parser: argument
        options:
          format:
            remove_empty_root_boundary: true
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[param]]>>",
      "params": {
        "param": {
          "parser": "argument",
          "options": {
            "format": {
              "remove_empty_root_boundary": true
            }
          }
        }
      }
    }
  }
}
Open in a new tab