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

parser

Table of contents

Description:

This key defines the parser type for repeating parser configurations.

The value must be repeating. This specifies that the parameter uses the repeating parser, which allows a snippet configuration to appear multiple times.

Appears in:
└── Snippet
    └── params
        └── *
            └── Repeating Parser Configuration
                └── parser
Type:
"repeating" Required
Examples:

In this example, we have configured a repeating parser for a snippet parameter.

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[repeating_content]]>>
    params:
      repeating_content:
        parser: repeating
        options:
          snippet: content
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[repeating_content]]>>",
      "params": {
        "repeating_content": {
          "parser": "repeating",
          "options": {
            "snippet": "content"
          }
        }
      }
    }
  }
}
Open in a new tab