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

parser

Table of contents

Description:

This key defines the parser type for literal parser configurations.

The value must be literal. This specifies that the parameter uses the literal parser, which matches a specific literal string value.

Appears in:
└── Snippet
    └── params
        └── *
            └── Literal Parser Configuration
                └── parser
Type:
"literal" Required
Examples:

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

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[literal_param]]>>
    params:
      literal_param:
        parser: literal
        options:
          literal: specific-value
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[literal_param]]>>",
      "params": {
        "literal_param": {
          "parser": "literal",
          "options": {
            "literal": "specific-value"
          }
        }
      }
    }
  }
}
Open in a new tab