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

snippet

Table of contents

Description:

This key defines the snippet string that contains the text to match for your snippet, with any dynamic sections represented using a placeholder in double square brackets.

Appears in:
└── Snippet
    └── snippet
Type:
string
Examples:

In this example, we have configured a snippet string for a custom button snippet.

Copied to clipboard
_snippets_definitions:
  custom_button:
    snippet: '[[text]]'
    template: button
{
  "_snippets_definitions": {
    "custom_button": {
      "snippet": "[[text]]",
      "template": "button"
    }
  }
}
Open in a new tab