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

definitions

Table of contents

Description:

This key defines the variables required for the selected template.

Appears in:
└── Snippet
    └── definitions
Type:
Object<unknown>
Values:
unknownunknown#
Examples:

In this example, we have configured snippet definitions for a custom snippet template.

Copied to clipboard
_snippets_definitions:
  custom_button:
    template: button
    definitions:
      text: Button Text
      url: Button URL
{
  "_snippets_definitions": {
    "custom_button": {
      "template": "button",
      "definitions": {
        "text": "Button Text",
        "url": "Button URL"
      }
    }
  }
}
Open in a new tab