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

snippet

Table of contents

Description:

This key defines the snippet configuration to repeat for repeating parser configurations.

The value is a string that specifies the key name of another snippet configuration defined in _snippets. This snippet configuration will be repeated multiple times.

Appears in:
└── Snippet
    └── params
        └── *
            └── Repeating Parser Configuration
                └── options
                    └── snippet
Type:
string Required
Examples:

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

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