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

literal

Table of contents

Description:

This key defines the literal string value that can be repeated for repeating literal parser configurations.

The value is a string that specifies the exact text that can appear multiple times in the snippet.

Appears in:
└── Snippet
    └── params
        └── *
            └── Repeating Literal Parser Config
                └── options
                    └── literal
Type:
string Required
Examples:

In this example, we have configured a literal value for repeating literal parser.

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[literal_param]]>>
    params:
      literal_param:
        parser: repeating_literal
        options:
          literal: separator
          default: 1
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[literal_param]]>>",
      "params": {
        "literal_param": {
          "parser": "repeating_literal",
          "options": {
            "literal": "separator",
            "default": 1
          }
        }
      }
    }
  }
}
Open in a new tab