☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

root_value_delimiter

Table of contents

Description:

This key defines the delimiter that separates a key from its value in key-value pairs when parsing snippet parameters.

The value is a string that specifies the delimiter token. For pairs such as key="value", this would be =. For pairs such as key: "value", this would be : .

Appears in:
└── Snippet Format
    └── root_value_delimiter
Type:
string
Examples:

In this example, we have configured root value delimiter to use an equals sign.

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