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

array_delimiter

Table of contents

Description:

This key defines the delimiter that separates each value from the next within an array when parsing snippet parameters.

The value is a string that specifies the delimiter token. If required, this will usually be ,.

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

In this example, we have configured array delimiter to use a comma.

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